[pypy-dev] lltype.malloc with opaque structs

Timothy Baldridge tbaldridge at gmail.com
Wed Nov 5 01:30:08 CET 2014


There seem to be many ways to define rffi structs, rffi.Struct CStruct,
rffi_platform.Struct, lltype.Struct, what I need is this:

There's a struct defined in a c header I'm including via rffi. I want to
malloc it, but I don't want to define what the contents are, it's just a
blob that this library requires me to malloc and free. So I really don't
even know the size. What should I be using?

Timothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20141104/56f3f902/attachment.html>


More information about the pypy-dev mailing list