mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-28 15:15:04 +00:00
Add function source delimiters
This commit is contained in:
parent
c28402c5b6
commit
8d79cc0929
@ -72,7 +72,8 @@ template<> struct elf_header_impl_types<Elf64_Ehdr> {
|
||||
template< class T > class elf_header_impl : public elf_header
|
||||
{
|
||||
public:
|
||||
elf_header_impl( endianess_convertor* convertor_,
|
||||
//------------------------------------------------------------------------------
|
||||
elf_header_impl( endianess_convertor* convertor_,
|
||||
unsigned char encoding )
|
||||
{
|
||||
convertor = convertor_;
|
||||
@ -96,6 +97,7 @@ template< class T > class elf_header_impl : public elf_header
|
||||
header.e_shentsize = (*convertor)( header.e_shentsize );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool
|
||||
load( std::istream& stream )
|
||||
{
|
||||
@ -105,6 +107,7 @@ template< class T > class elf_header_impl : public elf_header
|
||||
return (stream.gcount() == sizeof( header ) );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool
|
||||
save( std::ostream& stream ) const
|
||||
{
|
||||
@ -114,6 +117,7 @@ template< class T > class elf_header_impl : public elf_header
|
||||
return stream.good();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// ELF header functions
|
||||
ELFIO_GET_ACCESS( unsigned char, class, header.e_ident[EI_CLASS] );
|
||||
ELFIO_GET_ACCESS( unsigned char, elf_version, header.e_ident[EI_VERSION] );
|
||||
|
Loading…
Reference in New Issue
Block a user