File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ let i4 = buffer.readDoubleBE(7);
33
33
** With ` Ginkgoch Buffer Reader ` **
34
34
It automatically manages the read position for you. You don't need to remember the position and the boring type length calculations.
35
35
``` js
36
+ const BufferReader = require (' ginkgoch-buffer-reader' );
37
+ let br = new BufferReader (buffer);
36
38
let i1 = br .nextInt8 ();
37
39
let i2 = br .nextInt16LE ();
38
40
let i3 = br .nextUInt32LE ();
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ginkgoch-buffer-reader" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"main" : " index.js" ,
5
+ "homepage" : " https://github.com/ginkgoch/node-buffer-reader" ,
5
6
"scripts" : {
6
7
"test" : " ./node_modules/.bin/jest"
7
8
},
17
18
"description" : " This is a library to help to easily read Buffer instance." ,
18
19
"devDependencies" : {
19
20
"jest" : " ^23.4.1"
21
+ },
22
+ "repository" : {
23
+ "url" : " https://github.com/ginkgoch/node-buffer-reader.git" ,
24
+ "type" : " git"
20
25
}
21
26
}
You can’t perform that action at this time.
0 commit comments