Skip to content

Commit

Permalink
n_strokes & n_points is uint16
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyk committed May 28, 2020
1 parent cd912ba commit 9d5c90c
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

1 comment on commit 9d5c90c

@Chavo722
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// .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'

Please sign in to comment.