summaryrefslogtreecommitdiff
path: root/ace/CDR_Stream.h
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-27 04:23:30 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-27 04:23:30 +0000
commit4e78e0e7a2ca80b771ea09105e90e263c031ee2d (patch)
treebf1f2c31c530c93cf6e43315a86f4efe252b335e /ace/CDR_Stream.h
parente7cb82759a9ce6e2a604d28ceefec0a89ba75992 (diff)
downloadATCD-4e78e0e7a2ca80b771ea09105e90e263c031ee2d.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/CDR_Stream.h')
-rw-r--r--ace/CDR_Stream.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/ace/CDR_Stream.h b/ace/CDR_Stream.h
index d8174641121..c852828c729 100644
--- a/ace/CDR_Stream.h
+++ b/ace/CDR_Stream.h
@@ -411,6 +411,12 @@ public:
// methods only return information about the first block in the
// chain.
+ int align_write_ptr (size_t alignment);
+ // Utility function to allow the user more flexibility.
+ // Pads the stream up to the nearest <alignment>-byte boundary.
+ // Argument MUST be a power of 2.
+ // Returns 0 on success and -1 on failure.
+
private:
ACE_OutputCDR (const ACE_OutputCDR& rhs);
ACE_OutputCDR& operator= (const ACE_OutputCDR& rhs);
@@ -469,10 +475,6 @@ private:
ACE_Message_Block *current_;
// The current block in the chain were we are writing.
- ACE_Allocator *buffer_allocator_;
- ACE_Allocator *data_block_allocator_;
- // Allocators for stream growth.
-
int do_byte_swap_;
// If not zero swap bytes at writing so the created CDR stream byte
// order does *not* match the machine byte order. The motivation
@@ -681,6 +683,12 @@ public:
size_t length (void) const;
// Return how many bytes are left in the stream.
+ int align_read_ptr (size_t alignment);
+ // Utility function to allow the user more flexibility.
+ // Skips up to the nearest <alignment>-byte boundary.
+ // Argument MUST be a power of 2.
+ // Returns 0 on success and -1 on failure.
+
private:
CDR::Boolean read_1 (CDR::Octet *x);
CDR::Boolean read_2 (CDR::UShort *x);