ByteReader Class Reference

#include <bytereader.h>

List of all members.


Detailed Description

Author:
Pavel Pervov

Version:
Revision
1.1.2.2.4.4


Public Member Functions

 ByteReader (const uint8 *bytecode, unsigned _offset, unsigned _len)
 ~ByteReader ()
int get_offset ()
void dump (unsigned num_bytes)
bool go_to_offset (unsigned _offset)
bool skip (int num_bytes)
bool parse_u4_be (uint32 *val)
bool parse_u4_le (uint32 *val)
bool parse_u2_be (uint16 *val)
bool parse_u2_le (uint16 *val)
bool parse_u1 (uint8 *val)
const uint8 * get_and_skip (unsigned len)
bool have (int num_bytes)


Constructor & Destructor Documentation

ByteReader.ByteReader ( const uint8 *  bytecode,
unsigned  _offset,
unsigned  _len 
)

ByteReader.~ByteReader (  ) 


Member Function Documentation

int ByteReader.get_offset (  ) 

void ByteReader.dump ( unsigned  num_bytes  ) 

bool ByteReader.go_to_offset ( unsigned  _offset  ) 

bool ByteReader.skip ( int  num_bytes  ) 

bool ByteReader.parse_u4_be ( uint32 *  val  ) 

bool ByteReader.parse_u4_le ( uint32 *  val  ) 

bool ByteReader.parse_u2_be ( uint16 *  val  ) 

bool ByteReader.parse_u2_le ( uint16 *  val  ) 

bool ByteReader.parse_u1 ( uint8 *  val  ) 

const uint8* ByteReader.get_and_skip ( unsigned  len  ) 

bool ByteReader.have ( int  num_bytes  ) 


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

Genereated on Tue Mar 11 19:26:00 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.