Fixed-size buffer to hold a portion of output. More...
#include <SshOutputCollector.h>
Public Member Functions | |
| Buffer () | |
| Constructor. More... | |
| Buffer (char *buffer, size_t sz=0) | |
| Constructor with allocated page argument. More... | |
| size_t | fill () const |
| Returns amount of buffer filled. More... | |
| size_t | remain () const |
| Returns amount of unused space remaining in buffer. More... | |
| void | add (const char *data, size_t len) |
| Adds data to buffer. More... | |
Public Attributes | |
| char * | base {} |
| Pointer to beginning of buffer memory. More... | |
| char * | ptr {} |
| Pointer to next unused position in buffer memory. More... | |
| size_t | size {} |
| Size of allocated buffer. More... | |
Fixed-size buffer to hold a portion of output.
Definition at line 52 of file SshOutputCollector.h.
|
inline |
Constructor.
Definition at line 55 of file SshOutputCollector.h.
|
inline |
Constructor with allocated page argument.
| buffer | Pointer to allocated buffer memory |
| sz | Size of allocated buffer memory |
Definition at line 59 of file SshOutputCollector.h.
|
inline |
Adds data to buffer.
| data | Pointer to data to add |
| len | Length of data to add |
Definition at line 69 of file SshOutputCollector.h.
|
inline |
Returns amount of buffer filled.
Definition at line 62 of file SshOutputCollector.h.
|
inline |
Returns amount of unused space remaining in buffer.
Definition at line 65 of file SshOutputCollector.h.
| char* Hypertable::SshOutputCollector::Buffer::base {} |
Pointer to beginning of buffer memory.
Definition at line 75 of file SshOutputCollector.h.
| char* Hypertable::SshOutputCollector::Buffer::ptr {} |
Pointer to next unused position in buffer memory.
Definition at line 77 of file SshOutputCollector.h.
| size_t Hypertable::SshOutputCollector::Buffer::size {} |
Size of allocated buffer.
Definition at line 79 of file SshOutputCollector.h.
1.8.8