pub type AParcel_floatArrayAllocator = Option<unsafe extern "C" fn(arrayData: *mut c_void, length: i32, outBuffer: *mut *mut f32) -> bool>;
Expand description
This is called to get the underlying data from an arrayData object.
The implementation of this function should allocate a contiguous array of size ‘length’ and return that underlying buffer to be filled out. If there is an error or length is 0, null may be returned. If length is -1, this should allocate some representation of a null array.
See also AParcel_readFloatArray
\param arrayData some external representation of an array of float. \param length the length to allocate arrayData to. \param outBuffer a buffer of float of size ‘length’ (if length is >= 0, if length is 0, this may be nullptr).
\return whether or not the allocation was successful (or whether a null array is represented when length is -1).
Aliased Type§
enum AParcel_floatArrayAllocator {
None,
Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut *mut f32) -> bool),
}