summaryrefslogtreecommitdiff
path: root/ace/CDR_Stream.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-17 01:15:26 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-17 01:15:26 +0000
commit3937743d7c82890217dd2a20a337cf73d470c3fe (patch)
tree2ac97cfdf33c6e445937e7f4f6e86da133c5a31a /ace/CDR_Stream.h
parent6f0d56bd6cece0fc53e80c6836e5d509d62c3aee (diff)
downloadATCD-3937743d7c82890217dd2a20a337cf73d470c3fe.tar.gz
ChangeLogTag:Mon Aug 16 20:09:12 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'ace/CDR_Stream.h')
-rw-r--r--ace/CDR_Stream.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ace/CDR_Stream.h b/ace/CDR_Stream.h
index 7e4ed49e2f2..ff6ee5adc40 100644
--- a/ace/CDR_Stream.h
+++ b/ace/CDR_Stream.h
@@ -585,6 +585,18 @@ public:
ACE_Allocator* data_block_allocator = 0);
// Create an input CDR from an output CDR.
+ struct ACE_Export Transfer_Contents
+ {
+ // Helper class to transfer the contents from one input CDR to
+ // another without requiring any extra memory allocations, data
+ // copies or too many temporaries.
+ Transfer_Contents (ACE_InputCDR &rhs);
+
+ ACE_InputCDR &rhs_;
+ };
+ ACE_InputCDR (Transfer_Contents rhs);
+ // Transfer the contents from <rhs> to a new CDR
+
~ACE_InputCDR (void);
// Destructor
@@ -617,7 +629,7 @@ public:
struct ACE_Export to_string
{
- to_string (ACE_CDR::Char *&s,
+ to_string (ACE_CDR::Char *&s,
ACE_CDR::ULong b);
ACE_CDR::Char *&val_;
ACE_CDR::ULong bound_;