Constructor
new BufferView(buffer)
- Description:
Creates buffer view around a buffer.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Uint8Array | Initial buffer view. |
Members
buffer :Uint8Array
- Description:
Underlying buffer view.
- Source:
Underlying buffer view.
Type:
- Uint8Array
Methods
shiftRight(size)
- Description:
Moves view right.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
size |
number | Amount of bytes to shift. |
shrink(size)
- Description:
Shrinks view to specified size
- Source:
Parameters:
Name | Type | Description |
---|---|---|
size |
number | New length in bytes. |
window(size) → {Uint8Array}
- Description:
Returns new limited view.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
size |
number | Length in bytes. |
Returns:
View limited to specified size.
- Type
- Uint8Array