The default encoding implementation that is used for all default type descriptors.
More...
|
| RTAsciiEncoding (RTOBuffer *buffer) |
| Construct an ASCII encoder object.
|
|
int | getError (void) |
|
virtual int | flush (void) override |
| Flush the output buffer.
|
|
virtual int | put (const void *data, const RTObject_class *type) override |
| Encode a data object and write the encoding to the output buffer.
|
|
virtual int | put_address (const void *) override |
|
virtual int | put_bool (bool) override |
|
virtual int | put_char (char) override |
|
virtual int | put_int (int) override |
|
virtual int | put_long (long) override |
|
virtual int | put_long_long (long long) override |
|
virtual int | put_short (short) override |
|
virtual int | put_uchar (unsigned char) override |
|
virtual int | put_unsigned (unsigned) override |
|
virtual int | put_ulong (unsigned long) override |
|
virtual int | put_ushort (unsigned short) override |
|
virtual int | put_unsignedint (unsigned int) override |
|
virtual int | put_unsignedlong (unsigned long) override |
|
virtual int | put_unsignedlonglong (unsigned long long) override |
|
virtual int | put_unsignedshort (unsigned short) override |
|
virtual int | put_unsignedchar (unsigned char) override |
|
virtual int | put_string (const char *) override |
|
virtual int | put_opaque (int, const char *) override |
|
virtual int | put_enum (int, int, const RTFieldDescriptor *) override |
|
virtual int | put_array (const void *, int, const RTObject_class *) override |
|
virtual int | put_indirect (const void *, const RTObject_class *) override |
|
virtual int | put_struct (const void *, const RTObject_class *) override |
|
virtual int | write_string (const char *str) override |
| Write a string verbatimely to the output buffer of the encoder.
|
|
virtual int | flush (void)=0 |
|
virtual int | put (const void *, const RTObject_class *)=0 |
|
virtual int | put_address (const void *)=0 |
|
virtual int | put_bool (bool)=0 |
|
virtual int | put_char (char)=0 |
|
virtual int | put_int (int)=0 |
|
virtual int | put_long (long)=0 |
|
virtual int | put_long_long (long long)=0 |
|
virtual int | put_short (short)=0 |
|
virtual int | put_uchar (unsigned char)=0 |
|
virtual int | put_unsigned (unsigned)=0 |
|
virtual int | put_ulong (unsigned long)=0 |
|
virtual int | put_ushort (unsigned short)=0 |
|
virtual int | put_unsignedint (unsigned int)=0 |
|
virtual int | put_unsignedlong (unsigned long)=0 |
|
virtual int | put_unsignedlonglong (unsigned long long)=0 |
|
virtual int | put_unsignedshort (unsigned short)=0 |
|
virtual int | put_unsignedchar (unsigned char)=0 |
|
virtual int | put_string (const char *)=0 |
|
virtual int | put_opaque (int, const char *)=0 |
|
virtual int | put_enum (int value, int numChoices, const RTFieldDescriptor *choices)=0 |
|
virtual int | put_array (const void *array_base, int numElements, const RTObject_class *elementType)=0 |
|
virtual int | put_indirect (const void *pointer, const RTObject_class *targetType)=0 |
|
virtual int | put_struct (const void *record, const RTObject_class *recordType)=0 |
|
virtual int | write_string (const char *) |
|
The default encoding implementation that is used for all default type descriptors.
Types are encoded as ASCII strings by printing the type name followed by the typed value. Examples: int 8 double 2.7 MyClass{a 8, b false}