blob: c192be370db804a293cd3cf9810a97a0d3375c73 [file] [log] [blame] [view]
# FakeVmoHolder class
*[<Null safety>](https://dart.dev/null-safety)*
<p>A VmoHolder that simply wraps some ByteData.</p>
## Constructors
[FakeVmoHolder](../package-fuchsia_inspect_testing/FakeVmoHolder/FakeVmoHolder.md) (int size)
Creates a new <a href="../package-fuchsia_inspect_testing/FakeVmoHolder-class.md">FakeVmoHolder</a> of the given size.
[FakeVmoHolder.fromVmo](../package-fuchsia_inspect_testing/FakeVmoHolder/FakeVmoHolder.fromVmo.md) ([Vmo](../zircon/Vmo-class.md) vmo, {int retries = 1024})
Snapshots and loads a real VMO in this holder. _factory_
[FakeVmoHolder.usingData](../package-fuchsia_inspect_testing/FakeVmoHolder/FakeVmoHolder.usingData.md) (ByteData bytes)
Wraps a <a href="../package-fuchsia_inspect_testing/FakeVmoHolder-class.md">FakeVmoHolder</a> around the given data.
## Properties
##### [bytes](../package-fuchsia_inspect_testing/FakeVmoHolder/bytes.md) &#8594; ByteData
The memory contents of this "VMO".
_<span class="feature">final</span>_
##### [hashCode](../package-fuchsia_inspect_testing/FakeVmoHolder/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [runtimeType](../package-fuchsia_inspect_testing/FakeVmoHolder/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [size](../package-fuchsia_inspect_testing/FakeVmoHolder/size.md) &#8594; int
Size of the "VMO".
_<span class="feature">final</span>_
##### [vmo](../package-fuchsia_inspect_testing/FakeVmoHolder/vmo.md) &#8594; [Vmo](../zircon/Vmo-class.md)
The raw VMO
_<span class="feature">read-only</span>_
## Methods
##### [beginWork](../package-fuchsia_inspect_testing/FakeVmoHolder/beginWork.md)() void
Starts an update.
##### [commit](../package-fuchsia_inspect_testing/FakeVmoHolder/commit.md)() void
/ Finishes an update
##### [noSuchMethod](../package-fuchsia_inspect_testing/FakeVmoHolder/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature">inherited</span>_
##### [read](../package-fuchsia_inspect_testing/FakeVmoHolder/read.md)(int offset, int size) ByteData
Reads from the "VMO".
##### [readInt64](../package-fuchsia_inspect_testing/FakeVmoHolder/readInt64.md)(int offset) int
Reads int64 from VMO.
##### [toString](../package-fuchsia_inspect_testing/FakeVmoHolder/toString.md)() String
A string representation of this object.
_<span class="feature">inherited</span>_
##### [write](../package-fuchsia_inspect_testing/FakeVmoHolder/write.md)(int offset, ByteData data) void
Writes to the "VMO".
##### [writeInt64](../package-fuchsia_inspect_testing/FakeVmoHolder/writeInt64.md)(int offset, int value) void
Writes int64 to VMO.
##### [writeInt64Direct](../package-fuchsia_inspect_testing/FakeVmoHolder/writeInt64Direct.md)(int offset, int value) void
Writes int64 directly to VMO for immediate visibility.
## Operators
##### [operator ==](../package-fuchsia_inspect_testing/FakeVmoHolder/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature">inherited</span>_