elrond 1.0.0

Standard conformant elf parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

use super::super::nom::{ErrorKind, Needed, IResult,Err};

new_enum! {@limited_byte_parser
    type_name: ElfClass;
    new_trait {
        trait_name: Class;
        getter_method: get_class;
    };
    limited_parser {
        error_code: 3u32;
        parser_name: parse_elf_class;
    };
    values {
        (is_32bits, Bits32, 1),
        (is_64bits, Bits64, 2)
    };
}