Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htendian.cc File Reference

#include "htdebug.h"
#include "htendian.h"
#include "global.h"
#include <string.h>

Go to the source code of this file.

Functions

void create_foreign_int (void *buf, int i, int size, endianess to_endianess)
int create_host_int (const void *buf, int size, endianess from_endianess)
void create_foreign_int64 (void *buf, const qword i, int size, endianess to_endianess)
qword create_host_int64 (const void *buf, endianess from_endianess)
void create_host_struct (void *buf, const byte *table, endianess from)


Function Documentation

void create_foreign_int void *  buf,
int  i,
int  size,
endianess  to_endianess
 

Definition at line 26 of file htendian.cc.

References big_endian, buf, byte, little_endian, and size.

Referenced by blockop_int_process(), ht_compressed_stream::flush_compressed(), ht_object_stream_bin::putIntHex(), ht_uformat_viewer::ref_desc(), ht_elf32_reloc_file::reloc_apply(), ht_le_reloc_file::reloc_apply(), and ht_ne_reloc_file::reloc_apply().

void create_foreign_int64 void *  buf,
const qword  i,
int  size,
endianess  to_endianess
 

Definition at line 91 of file htendian.cc.

References big_endian, buf, byte, dword, little_endian, QWORD_GET_HI, and QWORD_GET_LO.

Referenced by ht_object_stream_bin::putQWordHex().

int create_host_int const void *  buf,
int  size,
endianess  from_endianess
 

Definition at line 64 of file htendian.cc.

References assert, big_endian, buf, byte, little_endian, and size.

Referenced by NEAnalyser::beginAnalysis(), create_host_struct(), ILDisassembler::decode(), PPCDisassembler::decode(), ht_le::do_fixups(), ht_compressed_stream::flush_uncompressed(), get_newexe_header_ofs(), ht_object_stream_bin::getIntHex(), htpefimports_init(), ht_coff::init(), ht_ne::init(), ht_pe::init(), ht_elf32_reloc_file::reloc_apply(), ht_ne::relocate(), and ht_ne::relocate_single().

qword create_host_int64 const void *  buf,
endianess  from_endianess
 

Definition at line 120 of file htendian.cc.

References big_endian, buf, byte, little_endian, qword, QWORD_SET_HI, and QWORD_SET_LO.

Referenced by create_host_struct(), and ht_object_stream_bin::getQWordHex().

void create_host_struct void *  buf,
const byte *  table,
endianess  from
 

Definition at line 137 of file htendian.cc.

References assert, buf, byte, create_host_int(), create_host_int64(), dword, qword, STRUCT_ENDIAN_BYTE, STRUCT_ENDIAN_DWORD, STRUCT_ENDIAN_HOST, STRUCT_ENDIAN_QWORD, STRUCT_ENDIAN_WORD, and word.

Referenced by MachoAnalyser::beginAnalysis(), ht_le::check_vxd(), ht_le::do_fixups(), ht_elf::fake_undefined_symbols32(), htpefimports_init(), ht_coff::init(), ht_elf::init(), ht_flt::init(), ht_le::init(), ht_macho::init(), ht_mz::init(), ht_ne::init(), ht_pe::init(), ht_pef::init(), ht_xbe::init(), ElfAnalyser::initInsertFakeSymbols(), ElfAnalyser::initInsertSymbols(), ht_le::read_objects(), ht_le::read_pagemap(), ht_ne::relocate(), and ht_elf::relocate_section().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5