Constructor
new Type(typedArrayType)
The abstract constructor for a type.
Parameters:
Name | Type | Description |
---|---|---|
typedArrayType |
Int8ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor | BigInt64ArrayConstructor | Uint8ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | BigUint64ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | The typed array for the type |
- Source:
Classes
Members
mangledName
The mangled name
- Source:
Methods
(abstract) alloc(memoryManager, unmarshalledIndex, unmarshalledArgs) → {number}
Allocate memory for the type
Parameters:
Name | Type | Description |
---|---|---|
memoryManager |
MemoryManager | The memory manager |
unmarshalledIndex |
number | The index of the unmarshalled value |
unmarshalledArgs |
Array.<*> | The unmarshalled arguments |
- Source:
Returns:
The address of the allocated value in memory
- Type
- number
(abstract) copy(dest, source) → {T}
Copy a value
Parameters:
Name | Type | Description |
---|---|---|
dest |
T | The destination value |
source |
T | The source value |
- Source:
Returns:
The destination value
- Type
- T
(abstract) free(memoryManager, address, unmarshalledIndex, unmarshalledArgs) → {void}
Free the memory for the value
Parameters:
Name | Type | Description |
---|---|---|
memoryManager |
MemoryManager | The memory manager |
address |
number | The address of the value in memory |
unmarshalledIndex |
number | The index of the unmarshalled value or -1 |
unmarshalledArgs |
Array.<*> | The unmarshalled arguments |
- Source:
Returns:
- Type
- void
(abstract) marshall(memoryManager, unmarshalledIndex, unmarshalledArgs) → {number|T}
Marshal a value.
Parameters:
Name | Type | Description |
---|---|---|
memoryManager |
MemoryManager | The memory manager |
unmarshalledIndex |
number | The index of the value to marshall |
unmarshalledArgs |
Array.<*> | The unmarshalled arguments |
- Source:
Returns:
The marshalled value
- Type
- number | T
(abstract) unmarshall(memoryManager, address, unmarshalledIndex, unmarshalledArgs) → {T}
Unmarshall a value.
Parameters:
Name | Type | Description |
---|---|---|
memoryManager |
MemoryManager | The memory manager |
address |
number | The address of the value in memory |
unmarshalledIndex |
number | The index of the unmarshalled value or -1 |
unmarshalledArgs |
Array.<*> | The unmarshalled args |
- Source:
Returns:
- Type
- T