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

Function utf_32_le_encode

Lib/_pycodecs.py:523–526  ·  view source on GitHub ↗

UTF-32 little-endian encoding without BOM.

(obj, errors="strict")

Source from the content-addressed store, hash-verified

521
522
523def utf_32_le_encode(obj, errors="strict"):
524 """UTF-32 little-endian encoding without BOM."""
525 encoded = PyUnicode_EncodeUTF32(obj, len(obj), errors, "little")
526 return bytes(encoded), len(obj)
527
528
529def utf_32_be_encode(obj, errors="strict"):

Callers

nothing calls this directly

Calls 2

PyUnicode_EncodeUTF32Function · 0.85
lenFunction · 0.85

Tested by

no test coverage detected