diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-09-14 15:30:12 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-09-14 15:30:12 -0700 |
commit | c912d30d47799bbba77d0f2532704d8aaba12a4a (patch) | |
tree | 8611fdb0b73a9a78f7c319ca4bb08f1f9d2e9cd0 /cpp/src/Ice/StreamI.cpp | |
parent | Fixed optional test issues (diff) | |
download | ice-c912d30d47799bbba77d0f2532704d8aaba12a4a.tar.bz2 ice-c912d30d47799bbba77d0f2532704d8aaba12a4a.tar.xz ice-c912d30d47799bbba77d0f2532704d8aaba12a4a.zip |
Python support for optionals
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r-- | cpp/src/Ice/StreamI.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp index e1e73f94617..431926d64b0 100644 --- a/cpp/src/Ice/StreamI.cpp +++ b/cpp/src/Ice/StreamI.cpp @@ -570,10 +570,10 @@ OutputStreamI::write(const Double* begin, const Double* end) _os->write(begin, end); } -void +bool OutputStreamI::writeOptional(Int tag, OptionalType type) { - _os->writeOpt(tag, type); + return _os->writeOpt(tag, type); } void @@ -677,6 +677,18 @@ OutputStreamI::rewrite(Int sz, size_type p) _os->rewrite(sz, p); } +void +OutputStreamI::startSize() +{ + _os->startSize(); +} + +void +OutputStreamI::endSize() +{ + _os->endSize(); +} + // // ObjectReader // |