Hello.
The problem's: how to get reference to data buffer of Binary Object?
1. How to recognize that PARAM_OBJECT-ed param was a Binary Object (and not for example Sprite Object).
2. Is there any reflection mechanysm allowing to access given CRunObject*'s Fields/Properties/Methods?
I've noticed that there's GetData and CallFunction methods prepared at runtime.cpp. If they are a way to do something like reflection can, still, there's no use of them if other objects are closed source nor have been documented .
And on the other hand some bugs with Binary Object:
Binary Object has one uncallable expression "Get Cursor Position" (due to these space bar in name ><).
Next thing is setting Cursor Position:
System: Always (every tick)
BinarySet cursor position to 0
System: For "i" from 0 to 999999
BinaryWrite unsigned integer 0[/code:2r07ykla]
This drains whole memory. On the other hand, "Set Cursor Position" appears to be setting cursor for reading values correctly.