You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,30 @@ Jump to `offset`, execute parser for `type` and rewind to previous offset.
289
289
start of the input buffer. Can be a string `[u]int{8, 16, 32, 64}{le, be}`
290
290
or an user defined Parser object.
291
291
292
+
### saveOffset(name [,options])
293
+
Save the current buffer offset as key `name`. This function is only useful when called after another function which would advance the internal buffer offset.
294
+
295
+
```javascript
296
+
var parser =newParser()
297
+
// this call advances the buffer offset by
298
+
// a variable (i.e. unknown to us) number of bytes
0 commit comments