diff options
author | ZeroC Staff <git@zeroc.com> | 2014-06-04 23:03:57 +0000 |
---|---|---|
committer | ZeroC Staff <git@zeroc.com> | 2014-06-04 23:03:57 +0000 |
commit | 7aaf53c7ecb429a8e3b6abab3f7b9dbdc387b171 (patch) | |
tree | 78bde514408b4d02488e5efffd325faaa1c9a287 /cpp/src/Ice/BasicStream.cpp | |
parent | fix for Java metrics test (diff) | |
download | ice-7aaf53c7ecb429a8e3b6abab3f7b9dbdc387b171.tar.bz2 ice-7aaf53c7ecb429a8e3b6abab3f7b9dbdc387b171.tar.xz ice-7aaf53c7ecb429a8e3b6abab3f7b9dbdc387b171.zip |
New cpp:view-type metadata for strings, sequences and dictionaries, plus updates
to throughput demo. Fixes ICE-5382.
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 580cd342839..3b2d7fa41c6 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -1350,7 +1350,7 @@ IceInternal::BasicStream::write(const char*) */ void -IceInternal::BasicStream::writeConverted(const string& v) +IceInternal::BasicStream::writeConverted(const char* vdata, size_t vsize) { // // What is the size of the resulting UTF-8 encoded string? @@ -1359,13 +1359,13 @@ IceInternal::BasicStream::writeConverted(const string& v) // try { - Int guessedSize = static_cast<Int>(v.size()); + Int guessedSize = static_cast<Int>(vsize); writeSize(guessedSize); // writeSize() only writes the size; it does not reserve any buffer space. size_t firstIndex = b.size(); StreamUTF8BufferI buffer(*this); - Byte* lastByte = _stringConverter->toUTF8(v.data(), v.data() + v.size(), buffer); + Byte* lastByte = _stringConverter->toUTF8(vdata, vdata + vsize, buffer); if(lastByte != b.end()) { b.resize(lastByte - b.begin()); |