FileContentMemory class

A FileContent that is resident in memory.

Inheritance

Constructors

FileContentMemory(List<int> data)

Properties

bytes ↔ Uint8List?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isCompressed → bool
True if the file content is compressed.
no setterinherited
length → int
The size of the file content in bytes.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Close the file content asynchronously.
override
closeSync() → void
Close the file content synchronously.
override
decompress(OutputStream output) → void
Decompress the file content and write out the decompressed bytes to the output stream.
inherited
getStream({bool decompress = true}) → InputStream
Get the InputStream for reading the file content.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes() → Uint8List
Read the file content into memory and return the read bytes.
inherited
toString() → String
A string representation of this object.
inherited
write(OutputStream output) → void
Write the contents of the file to the given output.
override

Operators

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