#include <CDR_Stream.h>
This class is a base class for defining codeset translation routines to handle the character set translations required by both CDR Input streams and CDR Output streams.
Definition at line 1054 of file CDR_Stream.h.
|
|
Definition at line 1057 of file CDR_Stream.h.
01057 {}
|
|
||||||||||||||||||||
|
Exposes the stream implementation of <adjust>, this is useful in many cases to minimize memory allocations during marshaling. On success <buf> will contain a contiguous area in the CDR stream that can hold <size> bytes aligned to <align>. Results Definition at line 1611 of file CDR_Stream.i. References ACE_OutputCDR::adjust.
01615 {
01616 return out.adjust(size, align, buf);
01617 }
|
|
||||||||||||
|
Used by derived classes to set errors in the CDR stream.
Definition at line 1620 of file CDR_Stream.i. References ACE_OutputCDR::good_bit_.
01621 {
01622 out.good_bit_ = bit;
01623 }
|
|
|
Definition at line 1638 of file CDR_Stream.i. References ACE_OutputCDR::major_version_.
01639 {
01640 return output.major_version_;
01641 }
|
|
|
Obtain the CDR Stream's major & minor version values.
Definition at line 1626 of file CDR_Stream.i. References ACE_InputCDR::major_version_.
01627 {
01628 return input.major_version_;
01629 }
|
|
|
Definition at line 1644 of file CDR_Stream.i. References ACE_OutputCDR::minor_version_.
01645 {
01646 return output.minor_version_;
01647 }
|
|
|
Definition at line 1632 of file CDR_Stream.i. References ACE_InputCDR::minor_version_.
01633 {
01634 return input.minor_version_;
01635 }
|
|
|
|
|
||||||||||||
|
Children have access to low-level routines because they cannot use read_char or something similar (it would recurse).
Definition at line 1549 of file CDR_Stream.i. References ACE_CDR::Octet, and ACE_InputCDR::read_1.
01551 {
01552 return input.read_1 (x);
01553 }
|
|
||||||||||||
|
Definition at line 1556 of file CDR_Stream.i. References ACE_InputCDR::read_2, and ACE_CDR::UShort.
01558 {
01559 return input.read_2 (x);
01560 }
|
|
||||||||||||
|
Definition at line 1563 of file CDR_Stream.i. References ACE_InputCDR::read_4, and ACE_CDR::ULong.
01565 {
01566 return input.read_4 (x);
01567 }
|
|
||||||||||||||||||||||||
|
Efficiently read <length> elements of size <size> each from into <x>; the data must be aligned to <align>.
Definition at line 1591 of file CDR_Stream.i. References ACE_InputCDR::read_array, and ACE_CDR::ULong.
01596 {
01597 return in.read_array (x, size, align, length);
01598 }
|
|
||||||||||||
|
Referenced by ACE_InputCDR::read_wchar. |
|
||||||||||||||||
|
Referenced by ACE_InputCDR::read_wchar_array. |
|
||||||||||||
|
Referenced by ACE_InputCDR::read_wstring. |
|
|
|
|
||||||||||||
|
Definition at line 1570 of file CDR_Stream.i. References ACE_CDR::Octet, and ACE_OutputCDR::write_1.
01572 {
01573 return output.write_1 (x);
01574 }
|
|
||||||||||||
|
Definition at line 1577 of file CDR_Stream.i. References ACE_CDR::UShort, and ACE_OutputCDR::write_2.
01579 {
01580 return output.write_2 (x);
01581 }
|
|
||||||||||||
|
Definition at line 1584 of file CDR_Stream.i. References ACE_CDR::ULong, and ACE_OutputCDR::write_4.
01586 {
01587 return output.write_4 (x);
01588 }
|
|
||||||||||||||||||||||||
|
Efficiently write <length> elements of size <size> from <x> into <output>. Before inserting the elements enough padding is added to ensure that the elements will be aligned to <align> in the stream. Definition at line 1601 of file CDR_Stream.i. References ACE_CDR::ULong, and ACE_OutputCDR::write_array.
01606 {
01607 return out.write_array(x, size, align, length);
01608 }
|
|
||||||||||||
|
Referenced by ACE_OutputCDR::write_wchar. |
|
||||||||||||||||
|
Referenced by ACE_OutputCDR::write_wchar_array. |
|
||||||||||||||||
|
Referenced by ACE_OutputCDR::write_wstring. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002