pub fn disassemble_bytecode<R: Read>(
reader: R,
) -> Result<String, BytecodeLoaderError>
Expand description
Disassemble bytecode using a reader.
§Arguments
reader
: The reader to read the bytecode from.
§Returns
- The string representation of the disassembled bytecode.
§Errors
BytecodeLoaderError
: An error occurred while loading the bytecode.
§Examples
use gbf_core::disassemble_bytecode;
// read from a file
let reader = std::fs::File::open("tests/gs2bc/simple.gs2bc").unwrap();
let result = disassemble_bytecode(reader).unwrap();