A Python bytes value, which str.encode() gives. It prints like Python, such as b'caf\xc3\xa9', has a length in bytes, iterates as integers, and decode() gives the string back.
Summary
Functions
Decodes bytes like bytes.decode(encoding).
Encodes string like str.encode(encoding, errors), for the codecs UTF-8, ASCII and Latin-1 with strict errors.
Returns the Python repr() of bytes.
Types
@type t() :: %Otera.Bytes{data: binary()}
Functions
Decodes bytes like bytes.decode(encoding).
Encodes string like str.encode(encoding, errors), for the codecs UTF-8, ASCII and Latin-1 with strict errors.
Returns the Python repr() of bytes.