Interface: IType<ValueType, BitSize, InputValue>
Type Parameters
Type Parameter | Default type |
---|---|
ValueType | - |
BitSize extends number | null | - |
InputValue | ValueType |
Properties
BIT_SIZE
readonly
BIT_SIZE:BitSize
The size of the value in bits, or null
if the size is variable.
Defined in
Methods
deserialize()
deserialize(
buffer
:UnalignedUint16Array
,pointer
:Pointer
):ValueType
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
Defined in
serialize()
serialize(
buffer
:UnalignedUint16Array
,value
:InputValue
):void
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