FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix unpack_raw to unpack to node buffer instead of buffercursor · UXScripts/node-binarypack@b4124c8 · GitHub

Repository navigation

Commit b4124c8

Browse files
committed
fix unpack_raw to unpack to node buffer instead of buffercursor
1 parent a379349 commit b4124c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/binarypack.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ BinaryPack.Unpacker.prototype.readInt64 = function(){
118118
}
119119

120120
BinaryPack.Unpacker.prototype.readraw = function(size){
121-
return this.cursor.slice(size);
121+
return this.cursor.slice(size).buffer;
122122
}
123123

124124
BinaryPack.Unpacker.prototype.readstring = function(size){

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "binarypack",
33
"description": "BinaryPack is a JSON-like binary serialization format",
4-
"version": "0.0.0",
4+
"version": "0.0.1",
55
"homepage": "https://github.com/binaryjs/node-binarypack",
66
"author": "Eric Zhang",
77
"repository": {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL