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 9c64d23 commit 39e3c5bCopy full SHA for 39e3c5b
lib/binary_parser.js
@@ -707,8 +707,7 @@ Parser.prototype.generateSkip = function(ctx) {
707
708
Parser.prototype.generate_encodeSkip = function(ctx) {
709
var length = ctx.generateOption(this.options.length);
710
- ctx.pushCode("smartBuffer._ensureWriteable({0});", length);
711
- ctx.pushCode("smartBuffer.writeOffset += {0};", length);
+ ctx.pushCode("smartBuffer.writeBuffer(Buffer.alloc({0}));", length);
712
};
713
714
Parser.prototype.generateString = function(ctx) {
0 commit comments