Lyricdev
GitHub

struct Bytes

pub struct Bytes :: [Codable, Equatable, Debug]

Conforms to Codable, Equatable, Debug.

Bytes in the format's own byte form: what encodeBytes/decodeBytes carry — Base64 in JSON, an array of numbers in TOML, the bytes themselves in a binary format.

Fields

pub value: uint8[]

Methods

pub fn encode<E :: [Encoder]>(&e: E): void throws EncodeError
pub static fn decode<D :: [Decoder]>(&d: D): Bytes throws DecodeError