diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-24 16:06:33 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-24 16:06:33 +0000 |
commit | b47f0b9870ad506ba7a4b5dabcea6fca714c3df8 (patch) | |
tree | 2382ac1783759dc0b7ec0c8202247636a1f1fe5b /cpp/src/Ice/BasicStream.cpp | |
parent | Fix (diff) | |
download | ice-b47f0b9870ad506ba7a4b5dabcea6fca714c3df8.tar.bz2 ice-b47f0b9870ad506ba7a4b5dabcea6fca714c3df8.tar.xz ice-b47f0b9870ad506ba7a4b5dabcea6fca714c3df8.zip |
Changed blob functions to match IceE
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index c81d2aa552f..1db2a1c2ac2 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -680,50 +680,6 @@ IceInternal::BasicStream::readBlob(vector<Byte>& v, Int sz) } void -IceInternal::BasicStream::writeBlob(const Ice::Byte* v, Container::size_type sz) -{ - if(sz > 0) - { - Container::size_type pos = b.size(); - resize(pos + sz); - memcpy(&b[pos], v, sz); - } -} - -void -IceInternal::BasicStream::readBlob(Ice::Byte* v, Container::size_type sz) -{ - if(sz > 0) - { - if(static_cast<Container::size_type>(b.end() - i) < sz) - { - throw UnmarshalOutOfBoundsException(__FILE__, __LINE__); - } - memcpy(v, &*i, sz); - i += sz; - } -} - -void -IceInternal::BasicStream::readBlob(pair<const Byte*, const Byte*>& v, Int sz) -{ - if(sz > 0) - { - if(b.end() - i < sz) - { - throw UnmarshalOutOfBoundsException(__FILE__, __LINE__); - } - v.first = i; - v.second = i + sz; - i += sz; - } - else - { - v.first = v.second = 0; - } -} - -void IceInternal::BasicStream::write(const Byte* begin, const Byte* end) { Int sz = static_cast<Int>(end - begin); |