diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2006-12-11 18:02:50 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2006-12-11 18:02:50 +0000 |
| commit | ed25c7a11404dd20c82cdfd43cb64611a4a79d7c (patch) | |
| tree | 0153185f2478dad3872e71dde052d5633f64f474 /qpid/cpp/lib/common/framing/Buffer.cpp | |
| parent | 2925a0ea7f198b7292cfd370023f2a16ef77d835 (diff) | |
| download | qpid-python-ed25c7a11404dd20c82cdfd43cb64611a4a79d7c.tar.gz | |
Added new Content class and other methods in Buffer to support the new transport in AMQP 0-9. This will allow the code produced by the code generator for 0-9 to compile.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@485780 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/common/framing/Buffer.cpp')
| -rw-r--r-- | qpid/cpp/lib/common/framing/Buffer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qpid/cpp/lib/common/framing/Buffer.cpp b/qpid/cpp/lib/common/framing/Buffer.cpp index f25b2a47c0..77b000193a 100644 --- a/qpid/cpp/lib/common/framing/Buffer.cpp +++ b/qpid/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); |
