#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.
Translators are reference counted. This allows for stateful as well as stateless translators. Stateless translators will be allocated once whereas CDR Streams own their own copy of a stateful translator.
Definition at line 1004 of file CDR_Stream.h.
|
Definition at line 1787 of file CDR_Stream.cpp.
01788 { 01789 } |
|
Exposes the stream implementation of , 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 . Results Definition at line 1559 of file CDR_Stream.inl. References ACE_OutputCDR::adjust().
01563 { 01564 return out.adjust(size, align, buf); 01565 } |
|
Used by derived classes to set errors in the CDR stream.
Definition at line 1568 of file CDR_Stream.inl. References ACE_OutputCDR::good_bit_.
01569 { 01570 out.good_bit_ = bit; 01571 } |
|
Definition at line 1586 of file CDR_Stream.inl. References ACE_OutputCDR::major_version_.
01587 { 01588 return output.major_version_; 01589 } |
|
Obtain the CDR Stream's major & minor version values.
Definition at line 1574 of file CDR_Stream.inl. References ACE_InputCDR::major_version_.
01575 { 01576 return input.major_version_; 01577 } |
|
Definition at line 1592 of file CDR_Stream.inl. References ACE_OutputCDR::minor_version_.
01593 { 01594 return output.minor_version_; 01595 } |
|
Definition at line 1580 of file CDR_Stream.inl. References ACE_InputCDR::minor_version_.
01581 { 01582 return input.minor_version_; 01583 } |
|
|
|
Children have access to low-level routines because they cannot use read_char or something similar (it would recurse). Definition at line 1525 of file CDR_Stream.inl. References ACE_CDR::Octet, and ACE_InputCDR::read_1().
01527 { 01528 return input.read_1 (x); 01529 } |
|
Efficiently read length elements of size size each from into ; the data must be aligned to . Definition at line 1539 of file CDR_Stream.inl. References ACE_InputCDR::read_array(), and ACE_CDR::ULong.
01544 { 01545 return in.read_array (x, size, align, length); 01546 } |
|
Read a single character from the stream, converting from the stream codeset to the native codeset Referenced by ACE_InputCDR::read_char(). |
|
Read an array of characters from the stream, converting the characters from the stream codeset to the native codeset. Referenced by ACE_InputCDR::read_char_array(). |
|
Read a string from the stream, including the length, converting the characters from the stream codeset to the native codeset Referenced by ACE_InputCDR::read_string(). |
|
|
|
Definition at line 1532 of file CDR_Stream.inl. References ACE_CDR::Octet, and ACE_OutputCDR::write_1().
01534 { 01535 return output.write_1 (x); 01536 } |
|
Efficiently write length elements of size size from into . Before inserting the elements enough padding is added to ensure that the elements will be aligned to in the stream. Definition at line 1549 of file CDR_Stream.inl. References ACE_CDR::ULong, and ACE_OutputCDR::write_array().
01554 { 01555 return out.write_array(x, size, align, length); 01556 } |
|
Write a single character to the stream, converting from the native codeset to the stream codeset Referenced by ACE_OutputCDR::write_char(). |
|
Write an array of characters to the stream, converting from the native codeset to the stream codeset Referenced by ACE_OutputCDR::write_char_array(). |
|
Write a string to the stream, including the length, converting from the native codeset to the stream codeset Referenced by ACE_OutputCDR::write_string(). |