Function js::jsapi::JS_StealArrayBufferContents [] [src]

pub unsafe extern "C" fn JS_StealArrayBufferContents(
    cx: *mut JSContext,
    obj: HandleObject
) -> *mut c_void

Steal the contents of the given array buffer. The array buffer has its length set to 0 and its contents array cleared. The caller takes ownership of the return value and must free it or transfer ownership via JS_NewArrayBufferWithContents when done using it.