Function javascriptcore_sys::JSStringGetUTF8CString [] [src]

pub unsafe extern "C" fn JSStringGetUTF8CString(
    string: JSStringRef,
    buffer: *mut c_char,
    bufferSize: usize
) -> usize

Converts a JavaScript string into a null-terminated UTF8 string, and copies the result into an external byte buffer.

Returns the number of bytes written into buffer (including the null-terminator byte).