ASTBinaryArchiveReader class

Reads a file written by ASTBinaryArchiveWriter.

Constructors

ASTBinaryArchiveReader({ASTBinaryVerifier? verifier, ASTBinaryVerifier? entryVerifier, bool verifyChecksum = true})
const

Properties

entryVerifier ASTBinaryVerifier?
Checks each entry's signature.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verifier ASTBinaryVerifier?
Checks the archive's own signature.
final
verifyChecksum bool
Whether to verify checksums. On by default.
final

Methods

entriesOf(Uint8List bytes) List<Uint8List>
The images this archive holds, in order, without decoding their ASTs.
listEntries(Uint8List bytes) List<ASTBinaryInfo>
What each entry says about itself, without decoding its AST.
loadInto(ApolloVM vm, Uint8List bytes) Future<int>
Decodes every entry and loads it into vm, returning how many were loaded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readCodeUnits(Uint8List bytes) List<BinaryCodeUnit>
Decodes every entry into a CodeUnit with its root populated.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

isArchive(Uint8List bytes) bool
Whether bytes is an archive rather than a single-unit image.