Package: android.hidl.allocator@1.0

IAllocator

interface IAllocator

Interface which allocates the required memory.

Methods

allocate

allocate (uint64_t size)
generates (bool success, memory mem)

Return memory must have instance name corresponding to this type of memory.

Details
Parameters
size
Size of memory to allocate in bytes.
Generates
success
Whether allocation succeeded.
mem

batchAllocate

batchAllocate (uint64_t size, uint64_t count)
generates (bool success, vec<memory> batch)

Return memory must have instance name corresponding to this type of memory.

Details
Parameters
size
Size of memory to allocate in bytes.
count
Number of memory instances to allocate.
Generates
success
Whether allocation succeeded(returns false if any allocation failed).
batch
Unmapped memory objects.