13 namespace duds {
namespace hardware {
namespace interface {
26 data.insert(
data.end(), str.begin(), str.end());
40 if ((offset < 0) || (offset >
data.size())) {
void add(char i)
Adds a byte to an output part.
virtual std::size_t length() const
Returns the length of the buffer following the start pointer.
bool varyingLength() const
True if this part is flagged as having a variable length.
An attempt was made to change the starting offset of a ConversationVector to an invalid value...
void setLength(std::size_t len)
Sets a new length, including the data prior to the start pointer, for a conversation part with a vary...
std::int16_t val16
A small integer for derived classes to use.
An attempt was made to add data to a conversation part flagged for input.
void setStartOffset(std::int16_t offset)
Sets a new start offset, in bytes, for a variable length input part.
An operation requiring a varible length conversation part was attempted on a part not flagged as havi...
void reserve(std::size_t len)
Reserves space in the internal vector.
std::vector< char > data
The internal buffer.
virtual char * start() const
Returns a pointer to the begining of the conversation part's buffer.
bool input() const
True if this part is flagged for input use.
#define DUDS_THROW_EXCEPTION(x)
Works like BOOST_THROW_EXCEPTION, but includes a stack trace if DUDS_ERRORS_VERBOSE is defined...