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

Function offset

src/code_attribute/parser.rs:11–13  ·  view source on GitHub ↗
(remaining: &'a [u8], input: &[u8])

Source from the content-addressed store, hash-verified

9};
10
11fn offset<'a>(remaining: &'a [u8], input: &[u8]) -> IResult<&'a [u8], usize> {
12 Ok((remaining, input.offset(remaining)))
13}
14
15fn align(address: usize) -> impl Fn(&[u8]) -> IResult<&[u8], &[u8]> {
16 move |input: &[u8]| take((4 - address % 4) % 4)(input)

Callers 1

code_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected