@@ -297,15 +297,15 @@ offset.
297297var parser = new Parser ()
298298 // this call advances the buffer offset by
299299 // a variable (i.e. unknown to us) number of bytes
300- .string (' name' , {
300+ .string (" name" , {
301301 zeroTerminated: true
302302 })
303303 // this variable points to an absolute position
304304 // in the buffer
305- .uint32 (' seekOffset' )
305+ .uint32 (" seekOffset" )
306306 // now, save the "current" offset in the stream
307307 // as the variable "currentOffset"
308- .saveOffset (' currentOffset' )
308+ .saveOffset (" currentOffset" )
309309 // finally, use the saved offset to figure out
310310 // how many bytes we need to skip
311311 .seek (function () {
@@ -403,7 +403,7 @@ too deep.
403403An example of referencing other patches:
404404
405405``` javascript
406- // the line below registers the name ' self' , so we will be able to use it in
406+ // the line below registers the name " self" , so we will be able to use it in
407407// `twoCells` as a reference
408408var parser = Parser .start ().namely (" self" );
409409
@@ -445,20 +445,20 @@ will pass it on to a parser for further processing.
445445 function returns true.
446446
447447``` javascript
448- const zlib = require (' zlib' );
448+ const zlib = require (" zlib" );
449449// A parser to run on the data returned by the wrapper
450450var textParser = Parser .start ()
451- .string (' text' , {
451+ .string (" text" , {
452452 zeroTerminated: true ,
453453 });
454454
455455var mainParser = Parser .start ()
456456 // Read length of the data to wrap
457- .uint32le (' length' )
457+ .uint32le (" length" )
458458 // Read wrapped data
459- .wrapped (' wrappedData' , {
459+ .wrapped (" wrappedData" , {
460460 // Indicate how much data to read, like buffer()
461- length: ' length' ,
461+ length: " length" ,
462462 // Define function to pre-process the data buffer
463463 wrapper : function (buffer ) {
464464 // E.g. decompress data and return it for further parsing
0 commit comments