import * as bencodex from "https://deno.land/x/bencodex@0.2.2/src/encoder.ts";
This module contains functions for encoding values into bytes.
Functions
Encodes a Bencodex value and returns the encoded bytes. | |
Encodes a value into the given buffer. | |
Encodes a key into the given buffer. | |
Estimates the byte size of the given key in Bencodex. It enables you to determine the size of a Bencodex data without actually encoding it. | |
Estimates the byte size of the given value in Bencodex. |
Interfaces
Options for encode function. | |
Represents the end state of encoding. | |
Options for encodeInto and encodeKeyInto functions. | |
Options for size estimation functions, estimateSize and estimateKeySize. |