diff options
| author | Alan Conway <aconway@apache.org> | 2007-07-04 05:26:26 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-07-04 05:26:26 +0000 |
| commit | d4be469092c558ca9031d82b963b8b845fa1e1bd (patch) | |
| tree | 745ccfec0f180932ab2f3a9abe31a708a49c020c /cpp/src/qpid/framing/Buffer.cpp | |
| parent | 90e275cc082f3ec71c4b879c2ea4d037d4128278 (diff) | |
| download | qpid-python-d4be469092c558ca9031d82b963b8b845fa1e1bd.tar.gz | |
Encode/decode for UUIDs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@553083 13f79535-47bb-0310-9956-ffa450edef68
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; +} |
