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

Function STORECHAR

Lib/_pycodecs.py:1303–1309  ·  view source on GitHub ↗
(CH, byteorder)

Source from the content-addressed store, hash-verified

1301
1302
1303def STORECHAR(CH, byteorder):
1304 hi = (CH >> 8) & 0xFF
1305 lo = CH & 0xFF
1306 if byteorder == "little":
1307 return [lo, hi]
1308 else:
1309 return [hi, lo]
1310
1311
1312def PyUnicode_EncodeUTF16(s, size, errors, byteorder="little"):

Callers 1

PyUnicode_EncodeUTF16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected