We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa74c9b commit 204705bCopy full SHA for 204705b
lib/binary_parser.ts
@@ -701,11 +701,9 @@ export class Parser {
701
this.generateEncode(ctx);
702
703
ctx.markResolved(this.alias);
704
-
705
this.resolveReferences(ctx, 'encode');
706
707
ctx.pushCode('return smartBuffer.toBuffer();');
708
709
ctx.pushCode('}');
710
711
return ctx;
@@ -1397,7 +1395,7 @@ export class Parser {
1397
1395
} else if (typeof this.options.readUntil === 'function') {
1398
1396
ctx.pushCode(
1399
` while (${itemCounter} < ${maxItems} && !(${
1400
- this.options.encodeUntil}).call(this, ${item}, ${savSmartBuffer}.toBuffer()));`
+ this.options.readUntil}).call(this, ${item}, ${savSmartBuffer}.toBuffer()));`
1401
);
1402
}
1403
ctx.pushCode('}'); // End of 'if(...) {'
0 commit comments