Exactly what I was looking for, thanks!
On Tue, Nov 4, 2014 at 5:45 PM, Ryan Gonzalez <[email protected]> wrote:
> I think last time I checked, I used rffi.COpaquePtr("MyType") to refer to
> a pointer to MyType.
>
> On Tue, Nov 4, 2014 at 6:30 PM, Timothy Baldridge <[email protected]>
> wrote:
>
>> 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
>>
>> _______________________________________________
>> pypy-dev mailing list
>> [email protected]
>> https://mail.python.org/mailman/listinfo/pypy-dev
>>
>>
>
>
> --
> Ryan
> If anybody ever asks me why I prefer C++ to C, my answer will be simple:
> "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
> nul-terminated."
> Personal reality distortion fields are immune to contradictory evidence. -
> srean
> Check out my website: http://kirbyfan64.github.io/
>
--
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev