#include <Buffer.h>
Data Structures | |
| class | iterator |
Public Types | |
| typedef iterator< unsigned char > | byte_iterator |
| typedef iterator< unsigned int > | word_iterator |
| typedef iterator< unsigned long > | long_iterator |
Public Member Functions | |
| Buffer (Address addr, unsigned initial_size) | |
| Buffer () | |
| void | initialize (Address addr, unsigned initial_size) |
| ~Buffer () | |
| template<class InputIterator > | |
| void | copy (InputIterator begin, InputIterator end) |
| void | copy (void *buffer, unsigned size) |
| unsigned | size () const |
| unsigned | max_size () const |
| bool | empty () const |
| template<class Input > | |
| void | push_back (const Input &) |
| byte_iterator | begin () const |
| byte_iterator | end () const |
| word_iterator | w_begin () const |
| word_iterator | w_end () const |
| long_iterator | l_begin () const |
| long_iterator | l_end () const |
| unsigned char * | start_ptr () const |
| Address | startAddr () const |
| Address | curAddr () const |
| template<> | |
| void | copy (unsigned char *begin, unsigned char *end) |
Static Public Attributes | |
| static const int | ALLOCATION_UNIT = 256 |
Private Member Functions | |
| void | increase_allocation (int added) |
| unsigned char * | cur_ptr () const |
Private Attributes | |
| unsigned char * | buffer_ |
| unsigned | size_ |
| unsigned | max_ |
| Address | start_ |
Definition at line 50 of file Buffer.h.
| typedef iterator<unsigned char> Dyninst::Buffer::byte_iterator |
| typedef iterator<unsigned long> Dyninst::Buffer::long_iterator |
| typedef iterator<unsigned int> Dyninst::Buffer::word_iterator |
| Buffer::Buffer | ( | Address | addr, | |
| unsigned | initial_size | |||
| ) |
Definition at line 39 of file Buffer.C.
References initialize().
| Buffer::byte_iterator Buffer::begin | ( | ) | const |
| void Dyninst::Buffer::copy | ( | unsigned char * | begin, | |
| unsigned char * | end | |||
| ) | [inline] |
| void Buffer::copy | ( | void * | buffer, | |
| unsigned | size | |||
| ) |
| void Dyninst::Buffer::copy | ( | InputIterator | begin, | |
| InputIterator | end | |||
| ) | [inline] |
| unsigned char * Buffer::cur_ptr | ( | ) | const [private] |
| Buffer::byte_iterator Buffer::end | ( | ) | const |
| void Buffer::increase_allocation | ( | int | added | ) | [private] |
Definition at line 65 of file Buffer.C.
References ALLOCATION_UNIT, buffer_, and max_.
Referenced by copy(), initialize(), and push_back().
| void Buffer::initialize | ( | Address | addr, | |
| unsigned | initial_size | |||
| ) |
| long_iterator Dyninst::Buffer::l_begin | ( | ) | const |
| long_iterator Dyninst::Buffer::l_end | ( | ) | const |
| void Dyninst::Buffer::push_back | ( | const Input & | i | ) | [inline] |
| unsigned char* Dyninst::Buffer::start_ptr | ( | ) | const [inline] |
| word_iterator Dyninst::Buffer::w_begin | ( | ) | const |
| word_iterator Dyninst::Buffer::w_end | ( | ) | const |
const int Buffer::ALLOCATION_UNIT = 256 [static] |
Definition at line 57 of file Buffer.h.
Referenced by increase_allocation().
unsigned char* Dyninst::Buffer::buffer_ [private] |
Definition at line 130 of file Buffer.h.
Referenced by begin(), cur_ptr(), increase_allocation(), initialize(), and ~Buffer().
unsigned Dyninst::Buffer::max_ [private] |
Definition at line 132 of file Buffer.h.
Referenced by copy(), increase_allocation(), max_size(), and push_back().
unsigned Dyninst::Buffer::size_ [private] |
Address Dyninst::Buffer::start_ [private] |
Definition at line 134 of file Buffer.h.
Referenced by initialize().
1.6.1