Package Exports
- get-byte
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-byte) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
get-byte
A Universal way of getting a Byte at a Given Index from a variety of in-memory data formats, including Uint8Array, Buffer, DataView, and Array Buffer
install
npm install get-byte
usage
import getByte from 'get-byte';
// gets the 10th byte from a buffer
getByte(buffer, 10);
// gets the 10th byte from an array buffer
getByte(arrayBuffer, 10);
// gets the 10th byte from a data view
getByte(dataView, 10);
// gets the 10th byte from a Uint8Array
getByte(uint8Array, 10);