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

Function utf_16_be_encode

Lib/_pycodecs.py:447–451  ·  view source on GitHub ↗

None

(obj, errors="strict")

Source from the content-addressed store, hash-verified

445
446
447def utf_16_be_encode(obj, errors="strict"):
448 """None"""
449 res = PyUnicode_EncodeUTF16(obj, len(obj), errors, "big")
450 res = bytes(res)
451 return res, len(obj)
452
453
454def utf_16_le_decode(data, errors="strict", final=0):

Callers

nothing calls this directly

Calls 2

PyUnicode_EncodeUTF16Function · 0.85
lenFunction · 0.85

Tested by

no test coverage detected