mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-29 09:16:47 +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
|
template< class T > class elf_header_impl : public elf_header
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
elf_header_impl( endianess_convertor* convertor_,
|
//------------------------------------------------------------------------------
|
||||||
|
elf_header_impl( endianess_convertor* convertor_,
|
||||||
unsigned char encoding )
|
unsigned char encoding )
|
||||||
{
|
{
|
||||||
convertor = convertor_;
|
convertor = convertor_;
|
||||||
@ -96,6 +97,7 @@ template< class T > class elf_header_impl : public elf_header
|
|||||||
header.e_shentsize = (*convertor)( header.e_shentsize );
|
header.e_shentsize = (*convertor)( header.e_shentsize );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
bool
|
bool
|
||||||
load( std::istream& stream )
|
load( std::istream& stream )
|
||||||
{
|
{
|
||||||
@ -105,6 +107,7 @@ template< class T > class elf_header_impl : public elf_header
|
|||||||
return (stream.gcount() == sizeof( header ) );
|
return (stream.gcount() == sizeof( header ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
bool
|
bool
|
||||||
save( std::ostream& stream ) const
|
save( std::ostream& stream ) const
|
||||||
{
|
{
|
||||||
@ -114,6 +117,7 @@ template< class T > class elf_header_impl : public elf_header
|
|||||||
return stream.good();
|
return stream.good();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
// ELF header functions
|
// ELF header functions
|
||||||
ELFIO_GET_ACCESS( unsigned char, class, header.e_ident[EI_CLASS] );
|
ELFIO_GET_ACCESS( unsigned char, class, header.e_ident[EI_CLASS] );
|
||||||
ELFIO_GET_ACCESS( unsigned char, elf_version, header.e_ident[EI_VERSION] );
|
ELFIO_GET_ACCESS( unsigned char, elf_version, header.e_ident[EI_VERSION] );
|
||||||
|
Loading…
Reference in New Issue
Block a user