Function js::jsapi::JS_GetDataViewData [] [src]

pub unsafe extern "C" fn JS_GetDataViewData(
    obj: *mut JSObject,
    arg1: *const AutoCheckCannotGC
) -> *mut c_void

Return a pointer to the beginning of the data referenced by a DataView.

|obj| must have passed a JS_IsDataViewObject test, or somehow be known that it would pass such a test: it is a data view or a wrapper of a data view, and the unwrapping will succeed. If cx is nullptr, then DEBUG builds may be unable to assert when unwrapping should be disallowed.