PseudoFile class

*[<Null safety>](https://dart.dev/null-safety)*

Inheritance

Implementers

Constructors

PseudoFile.readOnly (ReadFn? _readFn)

Creates a new read-only PseudoFile backed by the specified read handler. ...

PseudoFile.readOnlyStr (ReadFnStr fn)

See #readOnly(). Wraps the callback, allowing it to return a String instead of a Uint8List, but otherwise behaves identical to #readOnly().

PseudoFile.readWrite (int _capacity, ReadFn? _readFn, WriteFn? _writeFn)

Creates new PseudoFile backed by the specified read and write handlers. ...

PseudoFile.readWriteStr (int _capacity, ReadFnStr rfn, WriteFnStr wfn)

See #readWrite(). Wraps the read callback, allowing it to return a String instead of a Uint8List. Wraps the write callback, only allowing valid UTF-8 content to be written into the file. Written bytes are converted into a string instance, and the passed to the handler. In every other aspect behaves just like #readWrite().

Properties

hashCode → int

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

runtimeType → Type

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

Methods

close() void

Close this node and all of its bindings and children.
override

connect(int flags, int mode, InterfaceRequest request, [int parentFlags = Flags.fsRightsDefault]) int

Connects to this instance of PseudoFile and serves fushsia.io.File over fidl.
override

describe() dynamic
describe2(dynamic query) dynamic
filterForNodeReference(int flags) int

Filter flags when openFlagNodeReference is passed. This will maintain compatibility with c++ layer.
inherited

inodeNumber() int

Inode number as defined in io.fidl.
override

noSuchMethod(Invocation invocation) dynamic

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

open(int flags, int mode, String path, InterfaceRequest request, [int parentFlags = Flags.fsRightsDefault]) void

This function is called from fuchsia.io.Directory#open. This function parses path and opens correct node. ...
inherited

sendErrorEvent(int flags, int status, InterfaceRequest request) void

Create a error node to send onOpen event with failure status.
inherited

toString() String

A string representation of this object. ...
inherited

type() int

Should be one of ...
override

Operators

operator ==(Object other) bool

The equality operator. ...
inherited