[Tutor] writing to an address in memory

Nathan Smith nathan-tech at hotmail.com
Tue Jun 14 01:31:56 EDT 2022


Hi!


I'm working with a library which written in C and has a callback 
function for listening for data, basically.

Essentially any time it wants new data, it calls the callback with 
arguments:

callback(handle, buffer, length)

Where bufffer is a pointer to the buffer to write the data to.


I know how to read the data (using ctypes.from_address) but I don't know 
how to write data to it?

I've tried Googling, but I think my research is being hampered that I 
may not be using the correct termonology?

The library I am working with is:

http://www.un4seen.com/doc/#bass/STREAMPROC.html

-- 

Best Wishes,

Nathan Smith, BSC


My Website: https://nathantech.net




More information about the Tutor mailing list