(data)
| 17 | module.exports = BinaryPack; |
| 18 | |
| 19 | function 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 | |
| 27 | Unpacker.prototype.unpack = function(){ |
| 28 | var type = this.unpack_uint8(); |
nothing calls this directly
no outgoing calls
no test coverage detected