pub type AParcel_byteArrayAllocator = Option<unsafe extern "C" fn(arrayData: *mut c_void, length: i32, outBuffer: *mut *mut i8) -> 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_readByteArray
\param arrayData some external representation of an array of int8_t. \param length the length to allocate arrayData to. \param outBuffer a buffer of int8_t 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_byteArrayAllocator {
None,
Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut *mut i8) -> bool),
}