Type Alias binder_ndk_sys::AParcel_charArrayAllocator

source ·
pub type AParcel_charArrayAllocator = Option<unsafe extern "C" fn(arrayData: *mut c_void, length: i32, outBuffer: *mut *mut u16) -> 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_readCharArray

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.