Function ffi_helpers::error_handling::error_message_utf16[][src]

pub unsafe fn error_message_utf16(buf: *mut u16, length: c_int) -> c_int
Expand description

Peek at the most recent error and write its error message (Display impl) into the provided buffer as a UTF-16 encoded string.

This returns the number of bytes written, or -1 if there was an error.