Function chakracore_sys::JsGetArrayBufferStorage [] [src]

pub unsafe extern "system" fn JsGetArrayBufferStorage(
    arrayBuffer: JsValueRef,
    buffer: *mut ChakraBytePtr,
    bufferLength: *mut c_uint
) -> JsErrorCode

Obtains the underlying memory storage used by an ArrayBuffer. The ArrayBuffer instance. The ArrayBuffer's buffer. The lifetime of the buffer returned is the same as the lifetime of the the ArrayBuffer. The buffer pointer does not count as a reference to the ArrayBuffer for the purpose of garbage collection. The number of bytes in the buffer. The code JsNoError if the operation succeeded, a failure code otherwise.