diff options
author | Mark Spruiell <mes@zeroc.com> | 2016-03-09 16:00:39 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2016-03-09 16:00:39 -0800 |
commit | 15063818726cf3d474d77d9d5586b36a10a3d453 (patch) | |
tree | 35912f8e447722fdbc5f46a8a1500361a9327642 /cpp/include/Ice/OutputStream.h | |
parent | fixing leak in Outgoing (diff) | |
download | ice-15063818726cf3d474d77d9d5586b36a10a3d453.tar.bz2 ice-15063818726cf3d474d77d9d5586b36a10a3d453.tar.xz ice-15063818726cf3d474d77d9d5586b36a10a3d453.zip |
ICE-6852 - allow OutputStream to marshal to user-supplied buffer
Diffstat (limited to 'cpp/include/Ice/OutputStream.h')
-rw-r--r-- | cpp/include/Ice/OutputStream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/include/Ice/OutputStream.h b/cpp/include/Ice/OutputStream.h index ed2ddc3783c..ee45b8b4429 100644 --- a/cpp/include/Ice/OutputStream.h +++ b/cpp/include/Ice/OutputStream.h @@ -49,6 +49,13 @@ public: // OutputStream(const CommunicatorPtr&, const EncodingVersion&); + // + // This constructor uses the given communicator and encoding version. The byte pair denotes + // application-supplied memory that the stream uses as its initial marshaling buffer. The + // stream will reallocate if the size of the marshaled data exceeds the application's buffer. + // + OutputStream(const CommunicatorPtr&, const EncodingVersion&, const std::pair<const Byte*, const Byte*>&); + ~OutputStream() { // Inlined for performance reasons. |