const void* sgFileManager::ObjectToBitArray(const sgCObject* obj, unsigned long& arrSize)
Description:
Converts the object to a binary array in order to realize the second way of saving objects (read more how to save the scene here).
Arguments:
obj - object to be converted to a binary array
arrSize - size of the obtained binary array
Returned value:
Returns the pointer to the beginning of the binary array (the size of this array is returned by arrSize). If this array is supposed to be used after the object is destroyed you should copy this array to your block of memory, as after the object is destroyed the pointer returned by the current function becomes invalid.
If the convertion fails NULL is returned.
See also: