Function sapnwrfc::binding::RfcSAPUCToUTF8
[−]
[src]
pub unsafe extern "C" fn RfcSAPUCToUTF8(
sapuc: *const SAP_UC,
sapucLength: c_uint,
utf8: *mut RFC_BYTE,
utf8Size: *mut c_uint,
resultLength: *mut c_uint,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Converts data in SAP_UC format to UTF-8 format
\in *sapuc Pointer to SAP_UC data to be converted \in sapucLength Number of characters to convert \out *utf8 Pre-allocated output buffer, which will receive the result. Output will be null-terminated. \inout *utf8Size Needs to be filled with the size of the given output buffer in bytes. 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 bytes. \out *errorInfo Will be filled with additional error information in case of an error. \return RFC_OK or RFC_BUFFER_TOO_SMALL