Google is committed to advancing racial equity for Black communities. See how.

SizedVmo class

Typed wrapper around a Zircon vmo object, which also tracks its size.

Inheritance

Constructors

SizedVmo (Handle handle, int _size)

SizedVmo.fromFile (String path)

Uses fdio_get_vmo_clone() to get a VMO for the file at path in the current Isolate's namespace. ...
factory

SizedVmo.fromUint8List (Uint8List bytes)

Constructs a VMO using the given bytes. The returned Vmo is read-only.
factory

Properties

handleHandle

read-only, inherited

hashCodeint

The hash code for this object. ...
read-only, inherited

isValidbool

read-only, inherited

runtimeTypeType

A representation of the runtime type of the object.
read-only, inherited

sizeint

Size of the Vmo in bytes.
read-only

Methods

close() void

inherited

duplicate(int rights) Vmo

Duplicate this Vmo with the given rights.
inherited

getSize() GetSizeResult

inherited

map() Uint8List

Maps the Vmo into the process's root vmar, and returns it as a typed data array. ...
inherited

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

passHandle() Handle

inherited

read(int numBytes, [int vmoOffset = 0]) ReadResult

inherited

setSize(int size) int

inherited

toString() String

Returns a string representation of this object.
inherited

write(ByteData data, [int vmoOffset = 0]) int

inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited