Skip to main content

Interface: StructFieldInfo

One field's place in the layout, as reported by StructDef.describe.

Properties​

name​

readonly name: string


offset​

readonly offset: number

Byte offset from the start of the struct, as computed by libffi.


size​

readonly size: number

Bytes the field occupies — a pointer's worth for a pointer field.


type​

readonly type: string

The field type's name, e.g. 'type_sint32', 'u8[]', 'enum(RED, GREEN)'.