MCPcopy Index your code
hub / github.com/Palmr/classfile-parser / code_parser

Function code_parser

src/code_attribute/parser.rs:48–54  ·  view source on GitHub ↗
(outer_input: &[u8])

Source from the content-addressed store, hash-verified

46}
47
48pub fn code_parser(outer_input: &[u8]) -> IResult<&[u8], Vec<(usize, Instruction)>> {
49 many0(complete(|input| {
50 let (input, address) = offset(input, outer_input)?;
51 let (input, instruction) = instruction_parser(input, address)?;
52 Ok((input, (address, instruction)))
53 }))(outer_input)
54}
55
56pub fn instruction_parser(input: &[u8], address: usize) -> IResult<&[u8], Instruction> {
57 let (input, b0) = be_u8(input)?;

Callers 1

test_classFunction · 0.85

Calls 2

offsetFunction · 0.85
instruction_parserFunction · 0.85

Tested by 1

test_classFunction · 0.68