Skip to content

Commit

Permalink
Merge pull request #51 from tianyk/tianyk-patch-1
Browse files Browse the repository at this point in the history
n_strokes & n_points is uint16
  • Loading branch information
HalfdanJ committed May 28, 2020
2 parents cd912ba + 9d5c90c commit 2119957
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/nodejs/binary-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ var Drawing = Parser.start()
// .uint8('recognized')
.bit1('recognized')
.uint32le('timestamp') // unix timestamp in seconds
.uint8('n_strokes')
.uint8('foo')
.uint16le('n_strokes')
.array('strokes', {
type: Parser.start()
.uint8('n_points')
.uint8('foo')
.uint16le('n_points')
.array('x', {
type: 'uint8',
length: 'n_points'
Expand Down

0 comments on commit 2119957

Please sign in to comment.