Constructor
new Writer(size)
- Description:
Creates a writer with specified size.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
size |
number | Allocated buffer size. |
Members
offset :number
- Description:
Current offset.
- Source:
Current offset.
Type:
- number
storage :Uint8Array
- Description:
Underlying storage.
- Source:
Underlying storage.
Type:
- Uint8Array
Methods
write(buffer)
- Description:
Writes array into buffer.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Uint8Array | Array.<number> | Data to write. |