Client-side version of the Buffer from NodeJS with support ArrayBuffer.
Differences from NodeJS module:
- Support ArrayBuffer and dataView
- Supports the following encoding:
base64
,hex
,utf-8
- Not implemented support for the property
INSPECT_MAX_BYTES
- Added static property
Buffer.supportNativeBuffer
- Added methods:
toArray
([start, end])toDataView
([start, end]) - if supported by the browsertoArrayBuffer
([start, end]) - if supported by the browserreadUInt16
(offset, [isBigEndian, noAssert])readInt16
(offset, [isBigEndian, noAssert])readUInt32
(offset, [isBigEndian, noAssert])readInt32
(offset, [isBigEndian, noAssert])readFloat
(offset, [isBigEndian, noAssert])readDouble
(offset, [isBigEndian, noAssert])writeUInt16
(value, offset, [isBigEndian, noAssert])writeInt16
(value, offset, [isBigEndian, noAssert])writeUInt32
(value, offset, [isBigEndian, noAssert])writeInt32
(value, offset, [isBigEndian, noAssert])writeFloat
(value, offset, [isBigEndian, noAssert])writeDouble
(value, offset, [isBigEndian, noAssert])