Class: Struct
Methods
Constructors
Methods
getValueSize
▸ Static
getValueSize(value
): number
get any type value memory size
Parameters
Name | Type | Description |
---|---|---|
value | any | any type value |
Returns
number
Defined in
src/engine/util/struct/Struct.ts:45
Ref
▸ Static
Ref<T
>(c
): { name
: string
; type
: string
}[]
Type parameters
Name | Type |
---|---|
T | extends Struct <T > |
Parameters
Name | Type |
---|---|
c | Ctor <T > |
Returns
{ name
: string
; type
: string
}[]
Defined in
src/engine/util/struct/Struct.ts:81
Get
▸ Static
Get<T
>(c
): Struct
Type parameters
Name | Type |
---|---|
T | extends Struct <T > |
Parameters
Name | Type |
---|---|
c | Ctor <T > |
Returns
Defined in
src/engine/util/struct/Struct.ts:87
GetSize
▸ Static
GetSize<T
>(c
): number
get any struct memory size
Type parameters
Name | Type |
---|---|
T | extends Struct <T > |
Parameters
Name | Type |
---|---|
c | Ctor <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()