Interface: BaseType<T>
Base type for all data types.
Type Parameters
Type Parameter | Description |
---|---|
| The type of the data to encode and decode. |
Methods
write()
write(
value
:T
,writer
:BufferWriter
):void
Writes the value to the buffer.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The value to write. |
| The buffer writer. |
Returns
void
Defined in
read()
read(
reader
:BufferReader
):T
Reads the value from the buffer.
Parameters
Parameter | Type | Description |
---|---|---|
| The buffer reader. |
Returns
T
The value read from the buffer.