#include <CDR_Stream.h>
Public Methods | |
virtual ACE_CDR::Boolean | read_char (ACE_InputCDR &, ACE_CDR::Char &)=0 |
Read a single character from the stream, converting from the stream codeset to the native codeset. More... | |
virtual ACE_CDR::Boolean | read_string (ACE_InputCDR &, ACE_CDR::Char *&)=0 |
Read a string from the stream, including the length, converting the characters from the stream codeset to the native codeset. More... | |
virtual ACE_CDR::Boolean | read_char_array (ACE_InputCDR &, const ACE_CDR::Char *, ACE_CDR::ULong)=0 |
Read an array of characters from the stream, converting the characters from the stream codeset to the native codeset. More... | |
virtual ACE_CDR::Boolean | write_char (ACE_OutputCDR &, ACE_CDR::Char)=0 |
Write a single character to the stream, converting from the native codeset to the stream codeset. More... | |
virtual ACE_CDR::Boolean | write_string (ACE_OutputCDR &, ACE_CDR::ULong, const ACE_CDR::Char *)=0 |
Write a string to the stream, including the length, converting from the native codeset to the stream codeset. More... | |
virtual ACE_CDR::Boolean | write_char_array (ACE_OutputCDR &, const ACE_CDR::Char *, ACE_CDR::ULong)=0 |
Write an array of characters to the stream, converting from the native codeset to the stream codeset. More... | |
Protected Methods | |
ACE_CDR::Boolean | read_1 (ACE_InputCDR &input, ACE_CDR::Octet *x) |
Children have access to low-level routines because they cannot use read_char or something similar (it would recurse). More... | |
ACE_CDR::Boolean | write_1 (ACE_OutputCDR &output, const ACE_CDR::Octet *x) |
ACE_CDR::Boolean | read_array (ACE_InputCDR &input, void *x, size_t size, size_t align, ACE_CDR::ULong length) |
Efficiently read <length> elements of size <size> each from into <x>; the data must be aligned to <align>. More... | |
ACE_CDR::Boolean | write_array (ACE_OutputCDR &output, const void *x, size_t size, size_t align, ACE_CDR::ULong length) |
Efficiently write <length> elements of size <size> from <x> into <output>. More... | |
int | adjust (ACE_OutputCDR &out, size_t size, size_t align, char *&buf) |
Exposes the stream implementation of <adjust>, this is useful in many cases to minimize memory allocations during marshaling. More... | |
void | good_bit (ACE_OutputCDR &out, int bit) |
Used by derived classes to set errors in the CDR stream. More... |
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.
|
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 |
|
Used by derived classes to set errors in the CDR stream.
|
|
Children have access to low-level routines because they cannot use read_char or something similar (it would recurse).
|
|
Efficiently read <length> elements of size <size> each from into <x>; the data must be aligned to <align>.
|
|
Read a single character from the stream, converting from the stream codeset to the native codeset.
|
|
Read an array of characters from the stream, converting the characters from the stream codeset to the native codeset.
|
|
Read a string from the stream, including the length, converting the characters from the stream codeset to the native codeset.
|
|
|
|
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. |
|
Write a single character to the stream, converting from the native codeset to the stream codeset.
|
|
Write an array of characters to the stream, converting from the native codeset to the stream codeset.
|
|
Write a string to the stream, including the length, converting from the native codeset to the stream codeset.
|