binder_ndk_sys

Type Alias AParcel_uint32ArrayAllocator

Source
pub type AParcel_uint32ArrayAllocator = Option<unsafe extern "C" fn(arrayData: *mut c_void, length: i32, outBuffer: *mut *mut u32) -> 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_readUint32Array

\param arrayData some external representation of an array of uint32_t. \param length the length to allocate arrayData to. \param outBuffer a buffer of uint32_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_uint32ArrayAllocator {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut *mut u32) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *mut *mut u32) -> bool)

Some value of type T.