diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-10 13:15:28 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-10 13:15:28 +0000 |
commit | 75b0b75699c3e46c27bafc0fe8c9c9419aec4f00 (patch) | |
tree | 4ab90f49cd0c4166137cbc891c9a0d1fbe64661f /cpp/src/Ice/ThreadPool.cpp | |
parent | Fixed path for slice2cpp.exe (diff) | |
download | ice-75b0b75699c3e46c27bafc0fe8c9c9419aec4f00.tar.bz2 ice-75b0b75699c3e46c27bafc0fe8c9c9419aec4f00.tar.xz ice-75b0b75699c3e46c27bafc0fe8c9c9419aec4f00.zip |
Added zero copy readBlob
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 7b9f6fbbe8e..ec0e7e3b6b5 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -757,12 +757,12 @@ IceInternal::ThreadPool::read(const EventHandlerPtr& handler) ptrdiff_t pos = stream.i - stream.b.begin(); assert(pos >= headerSize); stream.i = stream.b.begin(); - ByteSeq m(sizeof(magic), 0); + pair<const Byte*, const Byte*> m; stream.readBlob(m, static_cast<Int>(sizeof(magic))); - if(!equal(m.begin(), m.end(), magic)) + if(!equal(m.first, m.second, magic)) { BadMagicException ex(__FILE__, __LINE__); - ex.badMagic = m; + ex.badMagic = vector<Byte>(m.first, m.second); throw ex; } Byte pMajor; |