Skip to content

Class: Struct

Constructors

Methods

Constructors

constructor

new Struct(): Struct

Returns

Struct

Methods

getValueSize

getValueSize(value): any

get any type value memory size

Parameters

NameTypeDescription
valueanyany type value

Returns

any

Defined in

src/util/struct/Struct.ts:48


Ref

Ref<T>(c): { name: string ; type: string }[]

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

{ name: string ; type: string }[]

Defined in

src/util/struct/Struct.ts:93


Get

Get<T>(c): Struct

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

Struct

Defined in

src/util/struct/Struct.ts:99


GetSize

GetSize<T>(c): number

get any struct memory size

Type parameters

NameType
Textends Struct

Parameters

NameType
cCtor<T>

Returns

number

Defined in

src/util/struct/Struct.ts:112


getValueType

getValueType(): { name: string ; type: string }[]

get reflection name

Returns

{ name: string ; type: string }[]

Defined in

src/util/struct/Struct.ts:25