MCPcopy Index your code
hub / github.com/RustPython/RustPython / z85encode

Function z85encode

Lib/base64.py:511–513  ·  view source on GitHub ↗

Encode bytes-like object b in z85 format and return a bytes object.

(s)

Source from the content-addressed store, hash-verified

509_z85_encode_translation = bytes.maketrans(_b85alphabet, _z85alphabet)
510
511def z85encode(s):
512 """Encode bytes-like object b in z85 format and return a bytes object."""
513 return b85encode(s).translate(_z85_encode_translation)
514
515def z85decode(s):
516 """Decode the z85-encoded bytes-like object or ASCII string b

Callers

nothing calls this directly

Calls 2

b85encodeFunction · 0.85
translateMethod · 0.45

Tested by

no test coverage detected