| INGOR
    | 
The basis class. More...
#include <ytObject.h>
| Public Member Functions | |
| ytObject * | ytObject_new (ytType type) | 
| Generates a default instance of the given type. | |
| void | ytObject_delete (ytObject *this) | 
| Deletes the ytObject instance. | |
| ytType | ytObject_type (const ytObject *this) | 
| Returns the type of this ytObject instance. | |
| ytObject * | ytObject_clone (const ytObject *this) | 
| Returns the copy of the given ytObject. | |
| ytObject * | ytObject_parse (ytType type, const char *str) | 
| Parses the string expression of the value as the given type. | |
| void | ytObject_print (const ytObject *this, FILE *fp) | 
| Prints the string expression of the value. | |
| void | ytObject_printBuff (const ytObject *this, char **buff, size_t *size) | 
| Prints the contents of the object in the specified buffer. | |
| size_t | ytObject_size (const ytObject *this) | 
| Returns the memory size required for making a deep copy of the object. | |
| ytByte * | ytObject_serialize (const ytObject *this, ytByte **pptr) | 
| Serializes the object in the memory. | |
| ytObject * | ytObject_deserialize (ytByte **const pptr) | 
| De-serializes the object serialized in the memory. | |
The basis class.
Generates a default instance of the given type.
| type | ytType | 
Parses the string expression of the value as the given type.
| type | Value type | 
| str | string expression of the value to parse. | 
| ytByte * ytObject_serialize | ( | const ytObject * | this, | 
| ytByte ** | pptr ) | 
Serializes the object in the memory.
This returns the pointer to the memory where the given object is serialized.
The serialized memory image can be de-serialized (recovered).
| this | pointer to the object to be serialized. | 
| ptr | pointer to the memory to serialize. NULL can be specified. If so, memory is newly allocated and returned. |