> On 19 Apr 2016, at 12:03, Timo Paulssen <t...@wakelift.de> wrote: > > 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.
I’ve been looking at nativecast, but haven’t been able to find an example that I could apply to this? Liz