Skip to main content
Module

x/bencodex/mod.ts>NonAllocEncodingOptions

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
interface NonAllocEncodingOptions
implements EncodingOptions
import { type NonAllocEncodingOptions } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Options for encodeInto and encodeKeyInto functions.

Properties

optional
speculative: boolean

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.