MCPcopy Index your code
hub / github.com/binaryjs/js-binarypack / Unpacker

Function Unpacker

lib/binarypack.js:19–25  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

17module.exports = BinaryPack;
18
19function Unpacker (data){
20 // Data is ArrayBuffer
21 this.index = 0;
22 this.dataBuffer = data;
23 this.dataView = new Uint8Array(this.dataBuffer);
24 this.length = this.dataBuffer.byteLength;
25}
26
27Unpacker.prototype.unpack = function(){
28 var type = this.unpack_uint8();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected