Function sapnwrfc::binding::RfcUTF8ToSAPUC
[−]
[src]
pub unsafe extern "C" fn RfcUTF8ToSAPUC(
utf8: *const RFC_BYTE,
utf8Length: c_uint,
sapuc: *mut SAP_UC,
sapucSize: *mut c_uint,
resultLength: *mut c_uint,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Converts data in UTF-8 format to SAP_UC strings.
\in *utf8 Pointer to UTF-8 data to be converted \in utf8Length Number of bytes to convert \out *sapuc Pre-allocated output buffer, which will receive the result. Output will be null-terminated. \inout *sapucSize Needs to be filled with the size of the given output buffer in SAP_UC characters. If the given buffer turns out to be too small (return code RFC_BUFFER_TOO_SMALL), it will be filled with the required buffer size that would be necessary to convert the given input data. \out *resultLength If the output buffer was large enough, resultLength will be filled with the length of the output string in SAP_UC characters. \out *errorInfo Will be filled with additional error information in case of an error. \return RFC_RC