diff options
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r-- | cpp/src/Ice/StreamI.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp index aeaaecf9b33..54fd4cfc47c 100644 --- a/cpp/src/Ice/StreamI.cpp +++ b/cpp/src/Ice/StreamI.cpp @@ -82,8 +82,9 @@ Ice::InputStreamI::readByte() vector<Byte> Ice::InputStreamI::readByteSeq() { - vector<Byte> v; - _is.read(v); + pair<const Byte*, const Byte*> p; + _is.read(p); + vector<Byte> v(p.first, p.second); return v; } @@ -303,7 +304,7 @@ Ice::OutputStreamI::writeByte(Byte v) void Ice::OutputStreamI::writeByteSeq(const vector<Byte>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -315,7 +316,7 @@ Ice::OutputStreamI::writeShort(Short v) void Ice::OutputStreamI::writeShortSeq(const vector<Short>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -327,7 +328,7 @@ Ice::OutputStreamI::writeInt(Int v) void Ice::OutputStreamI::writeIntSeq(const vector<Int>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -339,7 +340,7 @@ Ice::OutputStreamI::writeLong(Long v) void Ice::OutputStreamI::writeLongSeq(const vector<Long>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -351,7 +352,7 @@ Ice::OutputStreamI::writeFloat(Float v) void Ice::OutputStreamI::writeFloatSeq(const vector<Float>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -363,7 +364,7 @@ Ice::OutputStreamI::writeDouble(Double v) void Ice::OutputStreamI::writeDoubleSeq(const vector<Double>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void @@ -375,7 +376,7 @@ Ice::OutputStreamI::writeString(const string& v) void Ice::OutputStreamI::writeStringSeq(const vector<string>& v) { - _os.write(v); + _os.write(&v[0], &v[0] + v.size()); } void |