Skip to content
本页内容

Class: Struct

Methods

Constructors

Methods

getValueSize

Static getValueSize(value): number

get any type value memory size

Parameters

NameTypeDescription
valueanyany type value

Returns

number

Defined in

src/engine/util/struct/Struct.ts:45


Ref

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

Type parameters

NameType
Textends Struct<T>

Parameters

NameType
cCtor<T>

Returns

{ name: string ; type: string }[]

Defined in

src/engine/util/struct/Struct.ts:81


Get

Static Get<T>(c): Struct

Type parameters

NameType
Textends Struct<T>

Parameters

NameType
cCtor<T>

Returns

Struct

Defined in

src/engine/util/struct/Struct.ts:87


GetSize

Static GetSize<T>(c): number

get any struct memory size

Type parameters

NameType
Textends Struct<T>

Parameters

NameType
cCtor<T>

Returns

number

Defined in

src/engine/util/struct/Struct.ts:100


getValueType

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

get reflection name

Returns

{ name: string ; type: string }[]

Defined in

src/engine/util/struct/Struct.ts:22

Constructors

constructor

new Struct()