diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-07-18 15:19:19 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-07-18 15:19:19 -0230 |
commit | 8cd44c40a322236ecad9ea48211fcea863829288 (patch) | |
tree | 7695bd981bd1d536a2986df8fd62e930e1b60342 /cpp/include/Ice/BasicStream.h | |
parent | Added Ice/context to allDemos.py files (diff) | |
download | ice-8cd44c40a322236ecad9ea48211fcea863829288.tar.bz2 ice-8cd44c40a322236ecad9ea48211fcea863829288.tar.xz ice-8cd44c40a322236ecad9ea48211fcea863829288.zip |
ICE-5316 added pos method to BasicStream that works for both read/write
Diffstat (limited to 'cpp/include/Ice/BasicStream.h')
-rw-r--r-- | cpp/include/Ice/BasicStream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/include/Ice/BasicStream.h b/cpp/include/Ice/BasicStream.h index e01411aea1a..5e6d5007734 100644 --- a/cpp/include/Ice/BasicStream.h +++ b/cpp/include/Ice/BasicStream.h @@ -84,6 +84,7 @@ public: } b.resize(sz); + i = b.end(); } void startWriteObject(const Ice::SlicedDataPtr& data) @@ -854,6 +855,11 @@ public: } } + int pos() + { + return i - b.begin(); + } + void rewrite(Ice::Int value, size_type p) { write(value, b.begin() + p); |