The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ELF::Extract::Sections::Meta::Scanner - Interface Contract for Scanners

VERSION

version 1.001000

Required Methods for Applying Roles

open_file

  my $file = $scanner->open_file( file => FILE )

Must take a file name and assume a state reset.

next_section

  my $boolean = $scanner->next_section

Must return true if a section was discovered. Must return false otherwise. This method is called before getting data out.

section_offset

  my $offset = $scanner->section_offset;

Returns the offset as an Integer

section_size

  my $size = $scanner->section_size;

Returns the sections computed size ( if possible ) If you can't compute the size, please call $self->log->logcroak()

section_name

  my $name = $scanner->section_name;

Returns the sections name

can_compute_size

  my $boolean = $scanner->can_compute_size;

This returns whether or not this code is capable of discerning section sizes on its own. return 1 if true, return undef otherwise.

This will make us try guessing how big sections are by sorting them.

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.