read static method
Implementation
static CompileAndSignResult? read(BinaryReader reader) {
final moduleCount = reader.readVarUint();
final modules = <CompiledModule>[];
for (int i = 0; i < moduleCount; i++) {
final name = reader.readString();
final length = reader.readVarUint();
final bytecode = reader.read(length);
modules.add(CompiledModule(bytecode: bytecode, name: name));
}
final signatureLength = reader.readVarUint();
Uint8List signature = reader.read(signatureLength);
return CompileAndSignResult(modules: modules, signature: signature);
}