interface NonAllocEncodingOptions
implements EncodingOptions
import { type NonAllocEncodingOptions } from "https://deno.land/x/bencodex@0.2.2/src/encoder.ts";
Options for encodeInto and encodeKeyInto functions.
Properties
Whether to encode the value speculatively. If omitted, defaults to
false
. If true
is specified, the given buffer can be filled
some incorrect bytes when the encoding is not complete. Even if
true
is specified, the buffer will be filled with the correct bytes
when the encoding is complete.