Function chakracore_sys::JsCopyString [] [src]

pub unsafe extern "system" fn JsCopyString(
    value: JsValueRef,
    buffer: *mut c_char,
    bufferSize: usize,
    written: *mut usize
) -> JsErrorCode

Write JavascriptString value into C string buffer (Utf8) When size of the buffer is unknown, buffer argument can be nullptr. In that case, written argument will return the length needed. JavascriptString value Pointer to buffer Buffer size Total number of characters written The code JsNoError if the operation succeeded, a failure code otherwise.