RamFileHandle class
- Inheritance
-
- Object
- AbstractFileHandle
- RamFileHandle
Constructors
- RamFileHandle.asWritableRamBuffer({@Deprecated('Visible for testing only') int subListSize = 1024 * 1024})
-
Creates a writeable RamFileHandle
factory
- RamFileHandle.fromRamFileData(RamFileData ramFileData)
-
Creates a read-only RamFileHandle from a RamFileData
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpen → bool
-
no setteroverride
- length → int
-
no setteroverride
- openMode ↔ AbstractFileOpenMode
-
getter/setter pairinherited
- position ↔ int
-
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
override
-
closeSync(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readInto(
Uint8List buffer, [int? end]) → int -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeFromSync(
List< int> buffer, [int start = 0, int? end]) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromStream(
Stream< Uint8List> stream, int fileLength) → Future<RamFileHandle> - Creates a read-only RamFileHandle from a stream