Back to index

enigmail  1.4.3
Public Types | Static Public Member Functions
Elf_Ehdr_Traits Class Reference

#include <elfxx.h>

List of all members.

Public Types

typedef Elf32_Ehdr Type32
typedef Elf64_Ehdr Type64

Static Public Member Functions

template<class endian , typename R , typename T >
static void swap (T &t, R &r)

Detailed Description

Definition at line 85 of file elfxx.h.

Member Typedef Documentation

typedef Elf32_Ehdr Elf_Ehdr_Traits::Type32

Definition at line 87 of file elfxx.h.

typedef Elf64_Ehdr Elf_Ehdr_Traits::Type64

Definition at line 88 of file elfxx.h.

Member Function Documentation

template<class endian , typename R , typename T >
void Elf_Ehdr_Traits::swap ( T &  t,
R &  r 
) [static]

Definition at line 44 of file elf.cpp.

    memcpy(r.e_ident, t.e_ident, sizeof(r.e_ident));
    r.e_type = endian::swap(t.e_type);
    r.e_machine = endian::swap(t.e_machine);
    r.e_version = endian::swap(t.e_version);
    r.e_entry = endian::swap(t.e_entry);
    r.e_phoff = endian::swap(t.e_phoff);
    r.e_shoff = endian::swap(t.e_shoff);
    r.e_flags = endian::swap(t.e_flags);
    r.e_ehsize = endian::swap(t.e_ehsize);
    r.e_phentsize = endian::swap(t.e_phentsize);
    r.e_phnum = endian::swap(t.e_phnum);
    r.e_shentsize = endian::swap(t.e_shentsize);
    r.e_shnum = endian::swap(t.e_shnum);
    r.e_shstrndx = endian::swap(t.e_shstrndx);

The documentation for this class was generated from the following files: