VirtualFileSystemFile class abstract interface

A file implemented by a VFS author and returned by VirtualFileSystem.xOpen.

To avoid common pitfalls, consider extending BaseVfsFile instead.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xDeviceCharacteristics int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
xCheckReservedLock() int
Returns the lock state held by any process on this file.
xClose() → void
Close this file.
xFileSize() int
Returns the size of this file.
xLock(int mode) → void
Moves the lock state of this file to a more exclusive lock state.
xRead(Uint8List target, int fileOffset) → void
Fill the target with bytes read from fileOffset.
xSync(int flags) → void
Synchronizes, or flushes, the contents of this file to the file system.
xTruncate(int size) → void
Truncates this file to a size of size.
xUnlock(int mode) → void
Moves the lock state of this file to a less exclusive lock state.
xWrite(Uint8List buffer, int fileOffset) → void
Writes the buffer into this file at fileOffset, overwriting existing content or appending to it.

Operators

operator ==(Object other) bool
The equality operator.
inherited