blob: 518ee7863a8bcf331476f3c899aca5433965f7c0 [file] [log] [blame] [view]
# Vnode class
*[<Null safety>](https://dart.dev/null-safety)*
<p>This interface declares a abstract Vnode class with
common operations that may be overwritten.</p>
<p>These nodes can be added to <a href="../package-fuchsia_vfs_vfs/PseudoDir-class.md">PseudoDir</a> and can be accessed from filesystem.</p>
**Implementers**
- [PseudoDir](../package-fuchsia_vfs_vfs/PseudoDir-class.md)
- [PseudoFile](../package-fuchsia_vfs_vfs/PseudoFile-class.md)
- [RemoteDir](../package-fuchsia_vfs_vfs/RemoteDir-class.md)
- [Service](../package-fuchsia_vfs_vfs/Service-class.md)
## Constructors
[Vnode](../package-fuchsia_vfs_vfs/Vnode/Vnode.md) ()
## Properties
##### [hashCode](../package-fuchsia_vfs_vfs/Vnode/hashCode.md) &#8594; 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) &#8594; 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/Vnode/close.md)() void
Close this node and all of its bindings and children.
##### [connect](../package-fuchsia_vfs_vfs/Vnode/connect.md)(dynamic flags, int mode, [InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) request, [dynamic parentFlags]) int
Connect to this vnode.
All flags and modes are defined in
<a href="https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/">https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/</a>
##### [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.
##### [inodeNumber](../package-fuchsia_vfs_vfs/Vnode/inodeNumber.md)() int
Inode number as defined in fuchsia.io.
##### [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.
##### [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.
##### [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/Vnode/type.md)() dynamic
## Operators
##### [operator ==](../package-fuchsia_vfs_vfs/Vnode/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature inherited">inherited</span>_