class SizedVmo
Defined at line 19 of file ../../src/lib/fsl/vmo/sized_vmo.h
A VMO along with an associated size. The associated size may be smaller than
the actual size of the VMO, which allows to represent data that is not
page-aligned.
Public Methods
void SizedVmo (std::nullptr_t )
Defined at line 11 of file ../../src/lib/fsl/vmo/sized_vmo.cc
void SizedVmo (zx::vmo vmo, uint64_t size)
Defined at line 13 of file ../../src/lib/fsl/vmo/sized_vmo.cc
void SizedVmo (SizedVmo && other)
Defined at line 38 of file ../../src/lib/fsl/vmo/sized_vmo.cc
void ~SizedVmo ()
Defined at line 42 of file ../../src/lib/fsl/vmo/sized_vmo.cc
bool FromTransport (fuchsia::mem::Buffer transport, SizedVmo * out)
Builds a SizedVmo from a fuchsia::mem::Buffer. Returns false if the
transport is not valid. For the object to be valid, it must either be null,
or the vmo must be valid and the size must be inferior or equal to the
physical size of the vmo.
Defined at line 17 of file ../../src/lib/fsl/vmo/sized_vmo.cc
bool IsSizeValid (const zx::vmo & vmo, uint64_t size)
Defined at line 28 of file ../../src/lib/fsl/vmo/sized_vmo.cc
bool operator bool ()
Defined at line 36 of file ../../src/lib/fsl/vmo/sized_vmo.h
zx::vmo & vmo ()
Defined at line 38 of file ../../src/lib/fsl/vmo/sized_vmo.h
const zx::vmo & vmo ()
Defined at line 39 of file ../../src/lib/fsl/vmo/sized_vmo.h
uint64_t size ()
Defined at line 41 of file ../../src/lib/fsl/vmo/sized_vmo.h
SizedVmo & operator= (SizedVmo && other)
Defined at line 44 of file ../../src/lib/fsl/vmo/sized_vmo.cc
fuchsia::mem::Buffer ToTransport ()
Builds a fuchsia::mem::Buffer from this object. This will null this object
vmo.
Defined at line 51 of file ../../src/lib/fsl/vmo/sized_vmo.cc
zx_status_t Duplicate (zx_rights_t rights, SizedVmo * output)
Defined at line 62 of file ../../src/lib/fsl/vmo/sized_vmo.cc
zx_status_t ReplaceAsExecutable (const zx::resource & vmex)
Defined at line 70 of file ../../src/lib/fsl/vmo/sized_vmo.cc