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
@@ -286,6 +286,30 @@ pointed by another field.
286
286
-`offset` - (Required) Indicates absolute offset from the beginning of the
287
287
input buffer. Can be a number, string or a function.
288
288
289
+
### saveOffset(name [,options])
290
+
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.
291
+
292
+
```javascript
293
+
var parser =newParser()
294
+
// this call advances the buffer offset by
295
+
// a variable (i.e. unknown to us) number of bytes
0 commit comments