class MapUnownedVmo
Defined at line 27 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
zbitl::MapUnownedVmo is handled as a storage type that works like
zx::unowned_vmo. The difference is that payload access (for CRC32 et al)
works by mapping a range of the VMO containing the payload into the process
using the provided VMAR, rather than by zx::vmo::read into an allocated
buffer of fixed size. Note that access to the headers is still done via
zx::vmo::read (and zx::vmo::write for mutation). You can also map the
entire image into memory at once and then use an in-memory storage type like
zbitl::ByteView instead.
Public Methods
void MapUnownedVmo (zx::unowned_vmo vmo, bool writable, zx::unowned_vmar vmar)
Defined at line 29 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
void MapUnownedVmo ()
Defined at line 33 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
void MapUnownedVmo (MapUnownedVmo && )
Defined at line 34 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
MapUnownedVmo & operator= (MapUnownedVmo && )
Defined at line 35 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
void MapUnownedVmo (const MapUnownedVmo & other)
The default copy constructor and copy assignment operator are implicitly
deleted because the zx::unowned_* types are not copy-constructible, but
they are safe to copy here since it's clear from this type's purpose that
it always holds non-owning references.
Defined at line 42 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
MapUnownedVmo & operator= (const MapUnownedVmo & other)
Defined at line 47 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
const zx::vmo & vmo ()
Defined at line 56 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
const zx::vmar & vmar ()
Defined at line 57 of file ../../src/lib/zbitl/include/lib/zbitl/vmo.h
void ~MapUnownedVmo ()
Defined at line 64 of file ../../src/lib/zbitl/mapvmo.cc
Friends
class StorageTraits