On 19/04/16 01:58, Kevin Pye wrote:
[…] > 2. Write a simple C function to take a pointer to a double and
return > the double, put that into a shared library and then use NativeCall. > […]
Fortunately, you don't have to use a library with a custom function. You can just use "nativecast" for this task.
That should also be a few hundred times faster than what BSON does, and it also works for Int types.
You just might have to be careful with regards to endianness. - Timo