|
BWAPI
|
#include <MemoryFrame.h>
Public Member Functions | |
| MemoryFrame (void *base, unsigned int size) | |
| MemoryFrame () | |
| ~MemoryFrame () | |
| void | fill (unsigned char value) |
| MemoryFrame | getSubFrame (int from, int size) |
| MemoryFrame | getSubFrameByLimits (int from, int to) |
| MemoryFrame | getFrameUpto (const MemoryFrame &upto) |
| void * | begin () const |
| void * | end () const |
| unsigned int | size () const |
| bool | isInside (void *ptr) const |
| bool | isEmpty () const |
| bool | isMultipleOf (unsigned int bytes) const |
| template<typename T > | |
| bool | isFitFor () const |
| template<typename T > | |
| bool | isMultipleOf () const |
| bool | operator== (const MemoryFrame &) |
| bool | compareBytes (const MemoryFrame &) |
| void | skip (unsigned int bytes) |
| template<typename T > | |
| void | skip () |
| MemoryFrame | read (int bytes) |
| void | write (const MemoryFrame &source) |
| template<typename T > | |
| T & | readAs () |
| template<typename T > | |
| void | readTo (T &destination) |
| template<typename T > | |
| bool | tryReadTo (T &destination) throw () |
| template<typename T > | |
| bool | writeAs (const T &storee) |
| template<typename T > | |
| T & | getAs () |
| template<typename T > | |
| T & | offsetAs (int offset) |
| template<typename T > | |
| T * | offset (int offset=0) |
| template<typename T > | |
| T * | beginAs () |
| template<typename T > | |
| T * | endAs () |
| template<typename T > | |
| unsigned int | sizeAs () |
Static Public Member Functions | |
| template<typename T > | |
| static MemoryFrame | from (T &structure) |
| Util::MemoryFrame::MemoryFrame | ( | void * | base, |
| unsigned int | size | ||
| ) |

| void * Util::MemoryFrame::begin | ( | ) | const |

| T* Util::MemoryFrame::beginAs | ( | ) | [inline] |
| bool Util::MemoryFrame::compareBytes | ( | const MemoryFrame & | that | ) |
| void * Util::MemoryFrame::end | ( | ) | const |

| T* Util::MemoryFrame::endAs | ( | ) | [inline] |
| void Util::MemoryFrame::fill | ( | unsigned char | value | ) |
| static MemoryFrame Util::MemoryFrame::from | ( | T & | structure | ) | [inline, static] |

| T& Util::MemoryFrame::getAs | ( | ) | [inline] |

| MemoryFrame Util::MemoryFrame::getFrameUpto | ( | const MemoryFrame & | upto | ) |

| MemoryFrame Util::MemoryFrame::getSubFrame | ( | int | from, |
| int | size | ||
| ) |


| MemoryFrame Util::MemoryFrame::getSubFrameByLimits | ( | int | from, |
| int | to | ||
| ) |

| bool Util::MemoryFrame::isEmpty | ( | ) | const |
| bool Util::MemoryFrame::isFitFor | ( | ) | const [inline] |
| bool Util::MemoryFrame::isInside | ( | void * | ptr | ) | const |


| bool Util::MemoryFrame::isMultipleOf | ( | unsigned int | bytes | ) | const |
| bool Util::MemoryFrame::isMultipleOf | ( | ) | const [inline] |
| T* Util::MemoryFrame::offset | ( | int | offset = 0 | ) | [inline] |

| T& Util::MemoryFrame::offsetAs | ( | int | offset | ) | [inline] |

| bool Util::MemoryFrame::operator== | ( | const MemoryFrame & | operand | ) |
| MemoryFrame Util::MemoryFrame::read | ( | int | bytes | ) |

| T& Util::MemoryFrame::readAs | ( | ) | [inline] |
| void Util::MemoryFrame::readTo | ( | T & | destination | ) | [inline] |

| unsigned int Util::MemoryFrame::size | ( | ) | const |

| unsigned int Util::MemoryFrame::sizeAs | ( | ) | [inline] |
| void Util::MemoryFrame::skip | ( | unsigned int | bytes | ) |
| void Util::MemoryFrame::skip | ( | ) | [inline] |

| bool Util::MemoryFrame::tryReadTo | ( | T & | destination | ) | throw () [inline] |

| void Util::MemoryFrame::write | ( | const MemoryFrame & | source | ) |

| bool Util::MemoryFrame::writeAs | ( | const T & | storee | ) | [inline] |
1.7.6.1