Interface: IType<ValueType, BitSize>
Type Parameters
Type Parameter |
---|
ValueType |
BitSize extends number | null |
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
:Readonly
<ValueType
>):void
Serialize a value to a buffer.
Parameters
Parameter | Type | Description |
---|---|---|
buffer | UnalignedUint16Array | The buffer to write to |
value | Readonly <ValueType > | The value to write |
Returns
void