summaryrefslogtreecommitdiff
path: root/cpp/lib/common/framing/Buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/framing/Buffer.cpp')
-rw-r--r--cpp/lib/common/framing/Buffer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/lib/common/framing/Buffer.cpp b/cpp/lib/common/framing/Buffer.cpp
index f25b2a47c0..77b000193a 100644
--- a/cpp/lib/common/framing/Buffer.cpp
+++ b/cpp/lib/common/framing/Buffer.cpp
@@ -19,6 +19,7 @@
*
*/
#include <Buffer.h>
+#include <Content.h>
#include <FieldTable.h>
qpid::framing::Buffer::Buffer(u_int32_t _size) : size(_size), owner(true), position(0), limit(_size){
@@ -162,6 +163,14 @@ void qpid::framing::Buffer::getFieldTable(FieldTable& t){
t.decode(*this);
}
+void qpid::framing::Buffer::putContent(const Content& c){
+ c.encode(*this);
+}
+
+void qpid::framing::Buffer::getContent(Content& c){
+ c.decode(*this);
+}
+
void qpid::framing::Buffer::putRawData(const string& s){
u_int32_t len = s.length();
s.copy(data + position, len);