diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-02 08:31:14 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-02 08:31:14 +0000 |
commit | 740cd53025e2e40f4a650c518fc373f8e118d2fd (patch) | |
tree | 3c490bf4f36767c5d59fe00544a11b403f2ed1b8 /ace/CDR_Stream.h | |
parent | aeaf7fb6748ccfa62f4d13ccffb634882805985d (diff) | |
download | ATCD-740cd53025e2e40f4a650c518fc373f8e118d2fd.tar.gz |
Made do_byte_swap() public. Moved protected section before private section.
Diffstat (limited to 'ace/CDR_Stream.h')
-rw-r--r-- | ace/CDR_Stream.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ace/CDR_Stream.h b/ace/CDR_Stream.h index c852828c729..106c92c074b 100644 --- a/ace/CDR_Stream.h +++ b/ace/CDR_Stream.h @@ -689,6 +689,22 @@ public: // Argument MUST be a power of 2. // Returns 0 on success and -1 on failure. + int do_byte_swap (void) const; + // If non-zero then this stream is writing in non-native byte order, + // this is only meaningful if ACE_ENABLE_SWAP_ON_WRITE is defined. + +protected: + ACE_Message_Block start_; + // The start of the chain of message blocks, even though in the + // current version the chain always has length 1. + + int do_byte_swap_; + // The CDR stream byte order does not match the one on the machine, + // swapping is needed while reading. + + int good_bit_; + // set to 0 when an error occurs. + private: CDR::Boolean read_1 (CDR::Octet *x); CDR::Boolean read_2 (CDR::UShort *x); @@ -734,22 +750,6 @@ private: char *&buf); // As above, but now the size and alignment requirements may be // different. - - int do_byte_swap (void) const; - // If non-zero then this stream is writing in non-native byte order, - // this is only meaningful if ACE_ENABLE_SWAP_ON_WRITE is defined. - -protected: - ACE_Message_Block start_; - // The start of the chain of message blocks, even though in the - // current version the chain always has length 1. - - int do_byte_swap_; - // The CDR stream byte order does not match the one on the machine, - // swapping is needed while reading. - - int good_bit_; - // set to 0 when an error occurs. }; #if defined(__ACE_INLINE__) |