| |
| |
| |
| # PseudoVmoFile class |
| |
| |
| |
| |
| |
| |
| *[<Null safety>](https://dart.dev/null-safety)* |
| |
| |
| |
| <p>A <a href="../package-fuchsia_vfs_vfs/PseudoVmoFile-class.md">PseudoVmoFile</a> is a <a href="../package-fuchsia_vfs_vfs/VmoFile-class.md">VmoFile</a> typed <a href="../package-fuchsia_vfs_vfs/PseudoFile-class.md">PseudoFile</a> whose content is read |
| from a <a href="../zircon/Vmo-class.md">Vmo</a> dynamically produced by a supplied callback.</p> |
| <p>Each FIDL connection to a <a href="../package-fuchsia_vfs_vfs/PseudoVmoFile-class.md">PseudoVmoFile</a> calls the supplied callback once |
| and reads the content of the produced <a href="../zircon/Vmo-class.md">Vmo</a> into a buffer. Therefore, |
| connection order is important.</p> |
| <p>Reads on each connection are separately buffered.</p> |
| |
| |
| |
| **Inheritance** |
| |
| - Object |
| - [Vnode](../package-fuchsia_vfs_vfs/Vnode-class.md) |
| - [PseudoFile](../package-fuchsia_vfs_vfs/PseudoFile-class.md) |
| - PseudoVmoFile |
| |
| |
| |
| |
| |
| |
| |
| |
| ## Constructors |
| |
| [PseudoVmoFile.readOnly](../package-fuchsia_vfs_vfs/PseudoVmoFile/PseudoVmoFile.readOnly.md) ([VmoFn](../package-fuchsia_vfs_vfs/VmoFn.md) _vmoFn) |
| |
| Constructor for read-only <a href="../zircon/Vmo-class.md">Vmo</a> |
| |
| |
| ## Properties |
| |
| ##### [hashCode](../package-fuchsia_vfs_vfs/Vnode/hashCode.md) → int |
| |
| |
| |
| The hash code for this object. |
| _<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [runtimeType](../package-fuchsia_vfs_vfs/Vnode/runtimeType.md) → Type |
| |
| |
| |
| A representation of the runtime type of the object. |
| _<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_ |
| |
| |
| |
| |
| |
| ## Methods |
| |
| ##### [close](../package-fuchsia_vfs_vfs/PseudoFile/close.md)() void |
| |
| |
| |
| Close this node and all of its bindings and children. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [connect](../package-fuchsia_vfs_vfs/PseudoFile/connect.md)(dynamic flags, int mode, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) int |
| |
| |
| |
| Connects to this instance of <a href="../package-fuchsia_vfs_vfs/PseudoFile-class.md">PseudoFile</a> and serves <code>fidl_fuchsia_io.File</code> over fidl. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [describe2](../package-fuchsia_vfs_vfs/PseudoFile/describe2.md)() dynamic |
| |
| |
| |
| |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [describeDeprecated](../package-fuchsia_vfs_vfs/PseudoVmoFile/describeDeprecated.md)() dynamic |
| |
| |
| |
| |
| _<span class="feature override">override</span>_ |
| |
| |
| |
| ##### [filterForNodeReference](../package-fuchsia_vfs_vfs/Vnode/filterForNodeReference.md)(dynamic flags) dynamic |
| |
| |
| |
| Filter flags when <code>OpenFlags.nodeReference</code> is passed. |
| This will maintain compatibility with c++ layer. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [getBackingMemory](../package-fuchsia_vfs_vfs/PseudoVmoFile/getBackingMemory.md)(dynamic flags) [Vmo](../zircon/Vmo-class.md) |
| |
| |
| |
| |
| _<span class="feature override">override</span>_ |
| |
| |
| |
| ##### [getConnectionInfo](../package-fuchsia_vfs_vfs/PseudoVmoFile/getConnectionInfo.md)() dynamic |
| |
| |
| |
| |
| _<span class="feature override">override</span>_ |
| |
| |
| |
| ##### [inodeNumber](../package-fuchsia_vfs_vfs/PseudoFile/inodeNumber.md)() int |
| |
| |
| |
| Inode number as defined in fuchsia.io. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [noSuchMethod](../package-fuchsia_vfs_vfs/Vnode/noSuchMethod.md)(Invocation invocation) dynamic |
| |
| |
| |
| Invoked when a non-existent method or property is accessed. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [open](../package-fuchsia_vfs_vfs/Vnode/open.md)(dynamic flags, int mode, String path, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) void |
| |
| |
| |
| This function is called from <code>fidl_fuchsia_io.Directory#open</code>. |
| This function parses path and opens correct node. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [sendErrorEvent](../package-fuchsia_vfs_vfs/Vnode/sendErrorEvent.md)(dynamic flags, int status, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request) void |
| |
| |
| |
| Create a error node to send onOpen event with failure status. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [toString](../package-fuchsia_vfs_vfs/Vnode/toString.md)() String |
| |
| |
| |
| A string representation of this object. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| ##### [type](../package-fuchsia_vfs_vfs/PseudoFile/type.md)() dynamic |
| |
| |
| |
| |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| |
| |
| ## Operators |
| |
| ##### [operator ==](../package-fuchsia_vfs_vfs/Vnode/operator_equals.md)(Object other) bool |
| |
| |
| |
| The equality operator. |
| _<span class="feature inherited">inherited</span>_ |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |