| |
| |
| |
| # SizedVmo class |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <p>Typed wrapper around a Zircon vmo object, which also tracks its size.</p> |
| |
| |
| |
| **Inheritance** |
| |
| - Object |
| - [Vmo](../zircon/Vmo-class.md) |
| - SizedVmo |
| |
| |
| |
| |
| |
| |
| |
| |
| ## Constructors |
| |
| [SizedVmo](../zircon/SizedVmo/SizedVmo.md) ([Handle](../zircon/Handle-class.md) handle, int _size) |
| |
| |
| |
| [SizedVmo.fromFile](../zircon/SizedVmo/SizedVmo.fromFile.md) (String path) |
| |
| Uses fdio_get_vmo_clone() to get a VMO for the file at <code>path</code> in the |
| current Isolate's namespace. _factory_ |
| |
| [SizedVmo.fromUint8List](../zircon/SizedVmo/SizedVmo.fromUint8List.md) (Uint8List bytes) |
| |
| Constructs a VMO using the given <code>bytes</code>. The returned Vmo is read-only. _factory_ |
| |
| |
| ## Properties |
| |
| ##### [handle](../zircon/Vmo/handle.md) → [Handle](../zircon/Handle-class.md) |
| |
| |
| |
| |
| _<span class="feature">read-only</span><span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [hashCode](../zircon/Vmo/hashCode.md) → int |
| |
| |
| |
| The hash code for this object. |
| _<span class="feature">read-only</span><span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [isValid](../zircon/Vmo/isValid.md) → bool |
| |
| |
| |
| |
| _<span class="feature">read-only</span><span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [runtimeType](../zircon/Vmo/runtimeType.md) → Type |
| |
| |
| |
| A representation of the runtime type of the object. |
| _<span class="feature">read-only</span><span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [size](../zircon/SizedVmo/size.md) → int |
| |
| |
| |
| Size of the Vmo in bytes. |
| _<span class="feature">read-only</span>_ |
| |
| |
| |
| |
| |
| ## Methods |
| |
| ##### [close](../zircon/Vmo/close.md)() void |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [duplicate](../zircon/Vmo/duplicate.md)(int rights) [Vmo](../zircon/Vmo-class.md) |
| |
| |
| |
| Duplicate this <a href="../zircon/Vmo-class.md">Vmo</a> with the given rights. |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [getSize](../zircon/Vmo/getSize.md)() [GetSizeResult](../zircon/GetSizeResult-class.md) |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [map](../zircon/Vmo/map.md)() Uint8List |
| |
| |
| |
| Maps the Vmo into the process's root vmar, and returns it as a typed data |
| array. |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [noSuchMethod](../zircon/Vmo/noSuchMethod.md)(Invocation invocation) dynamic |
| |
| |
| |
| Invoked when a non-existent method or property is accessed. |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [passHandle](../zircon/Vmo/passHandle.md)() [Handle](../zircon/Handle-class.md) |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [read](../zircon/Vmo/read.md)(int numBytes, [int vmoOffset = 0]) [ReadResult](../zircon/ReadResult-class.md) |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [setSize](../zircon/Vmo/setSize.md)(int size) int |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [toString](../zircon/Vmo/toString.md)() String |
| |
| |
| |
| A string representation of this object. |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| ##### [write](../zircon/Vmo/write.md)(ByteData data, [int vmoOffset = 0]) int |
| |
| |
| |
| |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| |
| |
| ## Operators |
| |
| ##### [operator ==](../zircon/Vmo/operator_equals.md)(Object other) bool |
| |
| |
| |
| The equality operator. |
| _<span class="feature">inherited</span>_ |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |