Skip to content

Bytes

In std/encoding.

fn Bytes<E : Encoding>(text: String, as: Type<E>) : Bytes

The octets text encodes in as: Bytes("6869", Hex). Text that is not valid in the encoding is an evaluation error naming the encoding and the first invalid position; to_bytes gives none instead.