@@ -234,7 +234,10 @@ console.log("entries", entries);
234
234
b.string(key, size)
235
235
---------
236
236
237
- Read <size > bytes as a utf8 string, or read until end of buffer if size not specified
237
+ Read ` size ` bytes as a utf8 string, or read until end of buffer if size not
238
+ specified. Puts the resulting string in the variable stash at ` key ` .
239
+ If ` size ` is a string, use the value at ` vars[size] ` . The key follows the same
240
+ dotted address rules as the word functions.
238
241
239
242
``` js
240
243
var vars = binary .parse (new Buffer ([97 , 32 , 99 , 97 , 116 , 32 , 119 , 105 , 110 , 115 ]))
@@ -248,7 +251,8 @@ console.log(vars);
248
251
b.cstring(key, size)
249
252
---------
250
253
251
- Read <size > bytes as a null-terminated utf8 string (slices off the null character and anything after it, or last character if no null found)
254
+ Same as ` string() ` , but read as a null-terminated utf8 string (slices off the
255
+ null character and anything after it, or last character if no null found)
252
256
253
257
``` js
254
258
var vars = binary .parse (new Buffer ([97 , 32 , 99 , 97 , 116 , 32 , 119 , 105 , 110 , 115 , 0 ]))
@@ -262,7 +266,8 @@ console.log(vars);
262
266
b.skip(size)
263
267
---------
264
268
265
- Skip <size > bytes
269
+ Skip <size > bytes. If ` size ` is a string, use the value at ` vars[size] ` . The
270
+ key follows the same dotted address rules as the word functions.
266
271
267
272
``` js
268
273
var vars = binary .parse (new Buffer ([5 , 13 , 80 ]))
0 commit comments