Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4124c8

Browse filesBrowse files
committed
fix unpack_raw to unpack to node buffer instead of buffercursor
1 parent a379349 commit b4124c8
Copy full SHA for b4124c8

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/binarypack.js‎

Copy file name to clipboardExpand all lines: lib/binarypack.js
+1-1Lines 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){
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.