[erlang-questions] Passing a C array to the emulator as an ErlIOVec

Vance Shipley vances@REDACTED
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.

Joel,

Have a look at this thread:

   http://www1.erlang.org/pipermail/erlang-questions/2002-October/005858.html

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.

	-Vance




More information about the erlang-questions mailing list