[Numpy-discussion] Wrapping C array

Carlos Pita carlosjosepita at yahoo.com.ar
Tue May 17 17:33:18 EDT 2005


Hi!
I need to wrap a pre-existent C array into
a numarray. It shouldn't be a copy of the
original array because this is an audio buffer
with a fixed address and also input/output
copying from/to the buffer would be overkilling,
so the numarray *must* be lightly wrapping the
buffer and not a memcpy of it. But NA_NewArray
duplicates the passed buffer so I'm not sure
how to achieve the goal stated above or if
it's possible at all.
Can you help me?
Regards,
Carlos






More information about the NumPy-Discussion mailing list