Module encoder

Source

Functionsยง

encode_base64_packet
Encode a packet with binary data to a UTF-8 string. Note: calling encode_payload with Packets containing binary data also results in base64-encoded output.
encode_packet
Encode a packet with string data to a UTF-8 string.
encode_payload
Encode a payload containing multiple packets with either binary or string data to a UTF-8 string.