MCPcopy Create free account
hub / github.com/qilingframework/qiling / memberat

Method memberat

qiling/os/struct.py:201–210  ·  view source on GitHub ↗

Get the member name at a given offset. Args: offset: field offset within the structure Returns: field name, or None if no field starts at the specified offset

(cls, offset: int)

Source from the content-addressed store, hash-verified

199
200 @classmethod
201 def memberat(cls, offset: int) -> Optional[str]:
202 """Get the member name at a given offset.
203
204 Args:
205 offset: field offset within the structure
206
207 Returns: field name, or None if no field starts at the specified offset
208 """
209
210 return next((fname for fname, *_ in cls._fields_ if cls.offsetof(fname) == offset), None)
211
212
213class BaseStructEL(BaseStruct, ctypes.LittleEndianStructure):

Callers

nothing calls this directly

Calls 1

offsetofMethod · 0.80

Tested by

no test coverage detected