Re: [C++-sig] Mapping RAW memory data into Python

2010-10-28 Thread Marek Denis
W dniu 27.10.2010 17:30, Marek pisze: http://docs.python.org/release/2.5.4/lib/typesseq.html Yeah, Buffers (and especially API/C Buffer and MemoryView functions) vere what i was looking for. Thanks again! http://docs.python.org/c-api/buffer.html?highlight=buffer#PyBuffer_FromMemory/ --

Re: [C++-sig] Mapping RAW memory data into Python

2010-10-27 Thread Nat Linden
On Mon, Oct 25, 2010 at 1:51 PM, Marek Denis wrote: now I'd like to know whether it's possible to get access to the raw memory > from Python layer. > Let's suppose I have the char* ptr pointer that points to the memory chunk > with IPv4 packet. I would like to be able to read (and preferably writ

Re: [C++-sig] Mapping RAW memory data into Python

2010-10-25 Thread Jim Bosch
On 10/25/2010 10:51 AM, Marek Denis wrote: Hi, While I had some questions concerning accessing objects in Python, that were previously created in C++ now I'd like to know whether it's possible to get access to the raw memory from Python layer. Let's suppose I have the char* ptr pointer that point

[C++-sig] Mapping RAW memory data into Python

2010-10-25 Thread Marek Denis
Hi, While I had some questions concerning accessing objects in Python, that were previously created in C++ now I'd like to know whether it's possible to get access to the raw memory from Python layer. Let's suppose I have the char* ptr pointer that points to the memory chunk with IPv4 packet. I