Interface: IType<ValueType, BitSize, InputValue>
Defined in: types/base/IType.ts:4
Type Parameters
Type Parameter | Default type |
---|---|
ValueType | - |
BitSize extends number | null | - |
InputValue | ValueType |
Properties
BIT_SIZE
readonly
BIT_SIZE:BitSize
Defined in: types/base/IType.ts:24
The size of the value in bits, or null
if the size is variable.
Methods
deserialize()
deserialize(
buffer
:UnalignedUint16Array
,pointer
:Pointer
):ValueType
Defined in: types/base/IType.ts:19
Deserialize a value from a buffer.
Parameters
Parameter | Type | Description |
---|---|---|
buffer | UnalignedUint16Array | The buffer to read from |
pointer | Pointer | The pointer indicating the current position in the buffer |
Returns
ValueType
serialize()
serialize(
buffer
:UnalignedUint16Array
,value
:InputValue
):void
Defined in: types/base/IType.ts:11
Serialize a value to a buffer.
Parameters
Parameter | Type | Description |
---|---|---|
buffer | UnalignedUint16Array | The buffer to write to |
value | InputValue | The value to write |
Returns
void