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

Function utf_16_le_encode

Lib/_pycodecs.py:440–444  ·  view source on GitHub ↗

None

(obj, errors="strict")

Source from the content-addressed store, hash-verified

438
439
440def utf_16_le_encode(obj, errors="strict"):
441 """None"""
442 res = PyUnicode_EncodeUTF16(obj, len(obj), errors, "little")
443 res = bytes(res)
444 return res, len(obj)
445
446
447def utf_16_be_encode(obj, errors="strict"):

Callers

nothing calls this directly

Calls 2

PyUnicode_EncodeUTF16Function · 0.85
lenFunction · 0.85

Tested by

no test coverage detected