diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-04 16:07:03 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-04 16:07:03 +0000 |
commit | fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c (patch) | |
tree | 72b57f3711dad43a761a7defd66fc15eeb70282b /cpp/src/IcePatch2/ClientUtil.cpp | |
parent | Bug 919 - use requestId to set forwarding (diff) | |
download | ice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.tar.bz2 ice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.tar.xz ice-fc29b8818ddf5af43cdc8e5df43f0dbf0430f00c.zip |
Fixed 803 - make use of zero copy
Diffstat (limited to 'cpp/src/IcePatch2/ClientUtil.cpp')
-rwxr-xr-x | cpp/src/IcePatch2/ClientUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2/ClientUtil.cpp b/cpp/src/IcePatch2/ClientUtil.cpp index 2e5603fa5a7..c9c5ca4da30 100755 --- a/cpp/src/IcePatch2/ClientUtil.cpp +++ b/cpp/src/IcePatch2/ClientUtil.cpp @@ -738,10 +738,10 @@ public: } virtual void - ice_response(const ByteSeq& bytes) + ice_response(const pair<const Ice::Byte*, const Ice::Byte*>& bytes) { IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); - _bytes = bytes; + ByteSeq(bytes.first, bytes.second).swap(_bytes); _done = true; notify(); } |