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


ELF-Extract-Sections documentation Contained in the ELF-Extract-Sections distribution.

Index


Code Index:

NAME

Top

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

VERSION

Top

version 0.02071411

Required Methods for Applying Roles

Top

-> open_file file => FILE

Must take a file name and assume a state reset.

-> next_section

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

-> section_offset

Returns the offset as an Integer

-> section_size

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

-> section_name

Returns the sections name

-> 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

Top

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

Top


ELF-Extract-Sections documentation Contained in the ELF-Extract-Sections distribution.

use strict;
use warnings;

package ELF::Extract::Sections::Meta::Scanner;
BEGIN {
  $ELF::Extract::Sections::Meta::Scanner::VERSION = '0.02071411';
}

# ABSTRACT: Interface Contract for Scanners

# $Id:$

use MooseX::Declare;

role ELF::Extract::Sections::Meta::Scanner with MooseX::Log::Log4perl {

  requires( 'open_file', 'next_section', 'section_offset', 'section_size', 'section_name', 'can_compute_size' );

};

1;




__END__