#include "ut_compiler.h"
#include <gsf/gsf.h>
Go to the source code of this file.
Classes | |
struct | wri_struct |
Defines | |
#define | CT_IGNORE 0 |
#define | CT_VALUE 1 |
#define | CT_BLOB 2 |
#define | READ_WORD(d) (*(d) + (*((d) + 1) << 8)) |
#define | READ_DWORD(d) |
#define | WRITE_WORD(d, s) |
#define | WRITE_DWORD(d, s) |
Functions | |
bool | read_wri_struct (wri_struct *w, GsfInput *f) |
bool | read_wri_struct_mem (wri_struct *w, unsigned char *blob) |
int | wri_struct_value (const wri_struct *w, const char *name) |
void | free_wri_struct (wri_struct *w) |
void | DEBUG_WRI_STRUCT (wri_struct *w, int spaces=1) |
#define CT_BLOB 2 |
Referenced by DEBUG_WRI_STRUCT(), and read_wri_struct_mem().
#define CT_IGNORE 0 |
Referenced by DEBUG_WRI_STRUCT(), and read_wri_struct_mem().
#define CT_VALUE 1 |
Referenced by DEBUG_WRI_STRUCT(), and read_wri_struct_mem().
#define READ_DWORD | ( | d | ) |
Referenced by IE_Imp_MSWrite::read_pap(), IE_Imp_MSWrite::read_pic(), and IE_Imp_MSWrite::read_txt().
#define READ_WORD | ( | d | ) | (*(d) + (*((d) + 1) << 8)) |
#define WRITE_DWORD | ( | d, | ||
s | ||||
) |
{ \ char *p = reinterpret_cast<char *>(&(d)); \ \ p[0] = (s) & 0xff; \ p[1] = ((s) & 0xff00) >> 8; \ p[2] = ((s) & 0xff0000) >> 16; \ p[3] = ((s) & 0xff000000) >> 24; \ }
Referenced by IE_Imp_MSWrite::read_pic().
#define WRITE_WORD | ( | d, | ||
s | ||||
) |
{ \ char *p = reinterpret_cast<char *>(&(d)); \ \ p[0] = (s) & 0xff; \ p[1] = ((s) & 0xff00) >> 8; \ }
Referenced by IE_Imp_MSWrite::read_pic().
void DEBUG_WRI_STRUCT | ( | wri_struct * | w, | |
int | spaces = 1 | |||
) |
References CT_BLOB, CT_IGNORE, CT_VALUE, wri_struct::name, size, type, UT_DEBUGMSG, and UT_UNUSED.
Referenced by IE_Imp_MSWrite::parse_file(), and IE_Imp_MSWrite::read_pic().
void free_wri_struct | ( | wri_struct * | w | ) |
References wri_struct::data, wri_struct::name, and wri_struct::value.
Referenced by IE_Imp_MSWrite::read_pic(), and IE_Imp_MSWrite::~IE_Imp_MSWrite().
bool read_wri_struct | ( | wri_struct * | w, | |
GsfInput * | f | |||
) |
References read_wri_struct_mem(), wri_struct::size, size, and UT_WARNINGMSG.
Referenced by IE_Imp_MSWrite::parse_file().
bool read_wri_struct_mem | ( | wri_struct * | w, | |
unsigned char * | blob | |||
) |
References CT_BLOB, CT_IGNORE, CT_VALUE, wri_struct::data, wri_struct::name, size, wri_struct::size, type, UT_WARNINGMSG, and wri_struct::value.
Referenced by IE_Imp_MSWrite::read_pic(), and read_wri_struct().
int wri_struct_value | ( | const wri_struct * | w, | |
const char * | name | |||
) |