DVAssetPack class final

A pack, opened in place inside a file.

Properties

assets → Iterable<DVPackedAsset>
Every file carried.
no setter
buildId → String
Names this pack's content: a different file anywhere in it is a different id. What a runtime cache of it is keyed by.
final
hashCode → int
The hash code for this object.
no setterinherited
paths → Iterable<String>
Every path carried.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Lets go of the executable. The next read opens it again.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(DVPackedAsset asset) → Uint8List
asset's content, decoded when it is stored encoded.
readStored(DVPackedAsset asset, {int start = 0, int? end}) → Uint8List
asset's bytes as they are stored, or the part of them from start to end: what a client that accepts DVPackedAsset.encoding is sent.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String path) → DVPackedAsset?
The file at path, or null.

Static Methods

open(String file, {required int offset, required int length}) → DVAssetPack?
The pack at offset in file, length bytes long, or null when the bytes there are not one. Reads the index and nothing else.