diff options
Diffstat (limited to 'cpp/src/qpid/framing/Buffer.cpp')
| -rw-r--r-- | cpp/src/qpid/framing/Buffer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/Buffer.cpp b/cpp/src/qpid/framing/Buffer.cpp index 2a14e854d0..6c6b2661bd 100644 --- a/cpp/src/qpid/framing/Buffer.cpp +++ b/cpp/src/qpid/framing/Buffer.cpp @@ -181,3 +181,13 @@ void qpid::framing::Buffer::getRawData(string& s, uint32_t len){ s.assign(data + position, len); position += len; } + +void qpid::framing::Buffer::putRawData(const uint8_t* s, size_t len){ + memcpy(data + position, s, len); + position += len; +} + +void qpid::framing::Buffer::getRawData(uint8_t* s, size_t len){ + memcpy(s, data + position, len); + position += len; +} |
