[][src]Function dart_sys::Dart_TypedDataAcquireData

pub unsafe extern "C" fn Dart_TypedDataAcquireData(
    object: Dart_Handle,
    type_: *mut Dart_TypedData_Type,
    data: *mut *mut c_void,
    len: *mut isize
) -> Dart_Handle

Acquires access to the internal data address of a TypedData object.

\param object The typed data object whose internal data address is to be accessed. \param type The type of the object is returned here. \param data The internal data address is returned here. \param len Size of the typed array is returned here.

Notes: When the internal address of the object is acquired any calls to a Dart API function that could potentially allocate an object or run any Dart code will return an error.

Any Dart API functions for accessing the data should not be called before the corresponding release. In particular, the object should not be acquired again before its release. This leads to undefined behavior.

\return Success if the internal data address is acquired successfully. Otherwise, returns an error handle.