Enumerations
enum class HostPointerAccessMode : uint32_t
| Name | Value |
|---|---|
| kReadOnly | 0b01 |
| kWriteOnly | 0b10 |
| kReadWrite | 0b11 |
Defined at line 12 of file ../../src/ui/testing/util/buffers_helper.h
Records
Functions
-
void MapHostPointer (const fuchsia::sysmem2::BufferCollectionInfo &collection_info,uint32_tvmo_idx,HostPointerAccessModehost_pointer_access_mode,std::function<void (uint8_t *, uint32_t)>callback)Maps a sysmem vmo's bytes into host memory that can be accessed via a callback function. The
callback provides the caller with a raw pointer to the vmo memory as well as an int for the
number of bytes. If an out of bounds vmo_idx is provided, the callback function will call the
user callback with mapped_ptr equal to nullptr. Once the callback function returns, the host
pointer is unmapped and so cannot continue to be used outside of the scope of the callback.
Defined at line 33 of file ../../src/ui/testing/util/buffers_helper.cc
-
void MapHostPointer (const zx::vmo &vmo,HostPointerAccessModehost_pointer_access_mode,std::function<void (uint8_t *, uint32_t)>callback,uint64_tvmo_bytes)Maps a given vmo's bytes into host memory that can be accessed via a callback function. The
callback provides the caller with a raw pointer to the vmo memory as well as an int for the
number of bytes. Once the callback function returns, the host
pointer is unmapped and so cannot continue to be used outside of the scope of the callback.
Defined at line 49 of file ../../src/ui/testing/util/buffers_helper.cc