#include <StrMod/StaticBuffer.h>
Inheritance diagram for strmod::strmod::StaticBuffer:

Public Methods | |
| StaticBuffer (const void *buf, size_t buflen) | |
| Construct a StaticBuffer pointing at the given buffer area. | |
| virtual | ~StaticBuffer () |
| Doesn't do a thing because it doesn't own the storage it's pointing at. | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
| virtual unsigned int | Length () const |
| Number of octets this chunk takes up. May be deprecated. | |
| const void * | getVoidP () |
| Get a void pointer to the memory pointed at by this chunk. | |
| const U1Byte * | getCharP () |
| Get a possibly more convenient character pointer instead. | |
Static Public Attributes | |
| const STR_ClassIdent | identifier |
| A unique identifier for this class. | |
Protected Methods | |
| virtual const lcore::ClassIdent * | i_GetIdent () const |
| See class Protocol. | |
| virtual void | acceptVisitor (ChunkVisitor &visitor) throw (ChunkVisitor::halt_visitation) |
| Accept a ChunkVisitor, and maybe lead it through your children. | |
Oftentimes, these will be things like string constants and such.
Definition at line 41 of file StaticBuffer.h.
|
||||||||||||
|
Construct a StaticBuffer pointing at the given buffer area.
Definition at line 84 of file StaticBuffer.h. |
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::strmod::StrChunk. Definition at line 60 of file StaticBuffer.h. |
1.3-rc1