Class: StructType<Obj, FT>
Extends
AdvancedType<Obj,StructType<Obj,FT>>
Type Parameters
Obj
Obj
FT
FT extends { [K in keyof Obj]: [K, SimpleType<Obj[K]>] }[keyof Obj][]
Constructors
Constructor
new StructType<
Obj,FT>(fields,name):StructType<Obj,FT>
Parameters
fields
FT
name
string
Returns
StructType<Obj, FT>
Overrides
Properties
ffiType
readonlyffiType:StructType
Inherited from
ffiTypeStruct
readonlyffiTypeStruct:SimpleType<Obj>
Inherited from
fields
readonlyfields:FT
name
readonlyname:string
Inherited from
size
readonlysize:number
Inherited from
Methods
fromBuffer()
fromBuffer(
buffer,ctx?):Obj
Parameters
buffer
Uint8Array
ctx?
Returns
Obj
Inherited from
toBuffer()
toBuffer(
data,ctx?):Uint8Array
Parameters
data
Obj
ctx?
Returns
Uint8Array