[erlang-questions] Passing a C array to the emulator as an ErlIOVec
Fri Dec 14 23:22:19 CET 2007
On Fri, Dec 14, 2007 at 09:52:47PM +0000, Joel Reymont wrote:
} I'm thinking of wrapping a C block of memory in a binary,
} without copying it, to work on it in Erlang. The copying
} bit is a stickler, I absolutely do not want to copy, i.e.
} duplicate, the block of memory.
Have a look at this thread:
You don't get to choose whether or not it gets copied. But you
can accomplish it if your binaries are big enough that the
emulator wants to.
More information about the erlang-questions