Provides object type function.
SObjectSize | Return the size of the given object in bytes. |
SObjectIsType | Test if an object is derived from the given object type. |
SObjectType | Get the given object’s type name. |
SObjectInheritance | Get the given object’s inheritance. |
SObjectCompare | Compare two objects. |
SObjectRead | Read an SObject from a data source reader. |
SObjectWrite | Write an SObject to a data source writer. |
SObjectTypeIsReadable | Query if object instances of the given type are readable. |
SObjectIsWritable | Query if the given object is writable in the given format. |
SObjectSave | Save the given object in the given format to the given path. |
SObjectLoad | Load data of an object in the given format from the given path. |
SObjectIncRef | Increment the object’s reference count. |
SObjectDecRef | Decrement the object’s reference count. |
SObjectPrint | Print the contents of the given SObject to a character buffer. |
SObjectCopy | Copy an SObject. |
Return the size of the given object in bytes.
Parameters: |
|
---|---|
Return: | The size of the object in bytes. |
Test if an object is derived from the given object type.
Parameters: |
|
---|---|
Return: |
Get the given object’s type name.
Parameters: |
|
---|---|
Return: | Pointer to the given object’s type name. |
Get the given object’s inheritance.
Parameters: |
|
---|---|
Return: | A colon (”:”) separated string of the given object’s inheritance hierarchy, excluding SObject. |
Compare two objects.
Parameters: |
|
---|---|
Return: | |
Note: | The reference count of two objects needn’t be equal for objects to be equal. Will only work if the SObjectClasscompare function pointer has been implemented for the object type, otherwise FALSE is returned. |
Read an SObject from a data source reader.
Parameters: |
---|
Write an SObject to a data source writer.
Parameters: |
|
---|
Query if object instances of the given type are readable.
Checks that there are SSerializedObjectClass classes registered to read object instances of the given type and in the given format.
Parameters: |
|
---|---|
Return: |
Query if the given object is writable in the given format.
Checks that there are SSerializedObjectClass classes registered to write the given object in the given format.
Parameters: |
|
---|---|
Return: |
Save the given object in the given format to the given path.
Parameters: |
|
---|
Increment the object’s reference count.
Parameters: |
|
---|---|
Warning: | Use with care |
Decrement the object’s reference count.
Parameters: |
|
---|---|
Warning: | Use with care |
Warning
Reference counting functions should be used with utmost care. They are normally not required, and are here just for expert use.
Print the contents of the given SObject to a character buffer.
The caller is responsible for the memory of the buffer.
Parameters: |
|
---|---|
Return: | Pointer to a character buffer containing the contents of the given SObject. |
Note: | Will only work if the SObjectClassprint function pointer has been implemented for the object type, otherwise FALSE is returned. |
Copy an SObject.
Parameters: |
|
---|---|
Return: | Pointer to a copy of the given SObject. |
Note: | This is a deep copy. Caller is responsible for returned object’s memory. Will only work if the SObjectClasscopy function pointer has been implemented for the object type, otherwise FALSE is returned. |