@@ -429,10 +429,10 @@ parser.parse(buffer);
429429```
430430
431431### wrapped(name[ , options] )
432- Read data then wrap it by transforming it by a function for further parsing.
433- It works similarly to a buffer where it reads a block of data. But instead of returning the buffer it
432+ Read data then wrap it by transforming it by a function for further parsing.
433+ It works similarly to a buffer where it reads a block of data. But instead of returning the buffer it
434434will pass it on to a parser for further processing.
435- - ` wrapper ` - (Required) A function taking a buffer and returning a buffer (` (x: Buffer | Uint8Array ) => Buffer | Uint8Array ` )
435+ - ` wrapper ` - (Required) A function taking a buffer and returning a buffer (` (x: Buffer | Uint8Array ) => Buffer | Uint8Array ` )
436436 transforming the buffer into a buffer expected by ` type ` .
437437- ` type ` - (Required) A ` Parser ` object to parse the result of wrapper.
438438- ` length ` - (either ` length ` or ` readUntil ` is required) Length of the
@@ -455,11 +455,11 @@ var textParser = Parser.start()
455455var mainParser = Parser .start ()
456456 // Read length of the data to wrap
457457 .uint32le (' length' )
458- // Read wrapped data
458+ // Read wrapped data
459459 .wrapped (' wrappedData' , {
460460 // Indicate how much data to read, like buffer()
461461 length: ' length' ,
462- // Define function to pre-process the data buffer
462+ // Define function to pre-process the data buffer
463463 wrapper : function (buffer ) {
464464 // E.g. decompress data and return it for further parsing
465465 return zlib .inflateRawSync (buffer);
0 commit comments