PyUnicodeUCS2_Encode

Encodes a Py_UNICODE buffer of the given size and returns a Python string object.

version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
extern (C)
PyUnicodeUCS2_Encode
(,,
const(char)* encoding
,
const(char)* errors
)

Parameters

s Py_UNICODE*

Unicode char buffer

size Py_ssize_t

number of Py_UNICODE chars to encode

encoding const(char)*

encoding

errors const(char)*

error handling

Meta