ApolloVMBinaryAST extension
Binary AST convenience methods on ApolloVM.
Thin wrappers over ASTBinaryWriter, ASTBinaryReader and the archive pair; reach for those directly when more control is wanted.
- on
Methods
-
loadAllAST(
Uint8List archive, {ASTBinaryVerifier? verifier, ASTBinaryVerifier? entryVerifier}) → Future< int> -
Available on ApolloVM, provided by the ApolloVMBinaryAST extension
Loads every code unit in an archive, returning how many were loaded. -
loadCodeUnitAST(
Uint8List image, {ASTBinaryVerifier? verifier, String? id, String? namespace}) → Future< bool> -
Available on ApolloVM, provided by the ApolloVMBinaryAST extension
Decodes a binary AST image and loads it, skipping the parser entirely. -
saveAllAST(
{String? language, ASTBinarySigner? signer}) → Uint8List -
Available on ApolloVM, provided by the ApolloVMBinaryAST extension
Bundles the AST of every loaded code unit into a single archive. -
saveCodeUnitAST(
CodeUnit codeUnit, {ASTBinarySigner? signer}) → Uint8List -
Available on ApolloVM, provided by the ApolloVMBinaryAST extension
Encodes the AST ofcodeUnit, which must already be loaded.