Package: android.hidl.memory@1.0

IMemory

interface IMemory

Methods

update

update ()

Notify that you are about to use all of this memory.

Details

updateRange

updateRange (uint64_t start, uint64_t length)

Notify that you are about to use the specific range.

start + length must be<size

Details
Parameters
start
Offset from start of buffer about to be updated.
length
Number of bytes to be updated.

read

read ()

Notify that you are about to start reading all of this memory.

Details

readRange

readRange (uint64_t start, uint64_t length)

Notify that you are about to read the specific range.

Details
Parameters
start
Offset from start of buffer about to be read.
length
Number of bytes to be read.

commit

commit ()

Notify that you are done reading and/or writing this memory.

Must commit all previous update's and updateAll's.

Details

getPointer

getPointer ()
generates (pointer ptr)

Must return the same value everytime it is called.Must be callable at any point in or outside of the update/commit process.

Details
Generates
ptr
Actual pointer to underlying memory.

getSize

getSize ()
generates (uint64_t size)
Details
Generates
size
Size in bytes of underlying memory.