UTF-32 little-endian encoding without BOM.
(obj, errors="strict")
| 521 | |
| 522 | |
| 523 | def 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 | |
| 529 | def utf_32_be_encode(obj, errors="strict"): |
nothing calls this directly
no test coverage detected