Class: BufferView

BufferView(buffer)

Buffer view.

Constructor

new BufferView(buffer)

Creates buffer view around buffer.
Parameters:
Name Type Description
buffer Uint8Array Initial buffer view.
Source:

Methods

shiftRight(size)

Moves view right.
Parameters:
Name Type Description
size number Amount of bytes to shift.
Source:

shrink(size)

Shrinks view to specified size
Parameters:
Name Type Description
size number New length in bytes.
Source:

window(size) → {Uint8Array}

Returns new limited view.
Parameters:
Name Type Description
size number Length in bytes.
Source:
Returns:
View limited to specified size.
Type
Uint8Array