MCPcopy Create free account
hub / github.com/Palmr/classfile-parser / align

Function align

src/code_attribute/parser.rs:15–17  ·  view source on GitHub ↗
(address: usize)

Source from the content-addressed store, hash-verified

13}
14
15fn align(address: usize) -> impl Fn(&[u8]) -> IResult<&[u8], &[u8]> {
16 move |input: &[u8]| take((4 - address % 4) % 4)(input)
17}
18
19fn lookupswitch_parser(input: &[u8]) -> IResult<&[u8], Instruction> {
20 // This function provides type annotations required by rustc.

Callers 1

instruction_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected