Class: Struct
Constructors
Methods
Constructors
constructor
• new Struct(): Struct
Returns
Methods
getValueSize
▸ getValueSize(value
): any
get any type value memory size
Parameters
Name | Type | Description |
---|---|---|
value | any | any type value |
Returns
any
Defined in
Ref
▸ Ref<T
>(c
): { name
: string
; type
: string
}[]
Type parameters
Name | Type |
---|---|
T | extends Struct |
Parameters
Name | Type |
---|---|
c | Ctor <T > |
Returns
{ name
: string
; type
: string
}[]
Defined in
Get
▸ Get<T
>(c
): Struct
Type parameters
Name | Type |
---|---|
T | extends Struct |
Parameters
Name | Type |
---|---|
c | Ctor <T > |
Returns
Defined in
GetSize
▸ GetSize<T
>(c
): number
get any struct memory size
Type parameters
Name | Type |
---|---|
T | extends Struct |
Parameters
Name | Type |
---|---|
c | Ctor <T > |
Returns
number
Defined in
getValueType
▸ getValueType(): { name
: string
; type
: string
}[]
get reflection name
Returns
{ name
: string
; type
: string
}[]