Hi,
offsetof() is not supported by current Cython, and I have not found any
workaround (except hardcoding offsets for a specific architecture and
compiler, but this is obviously wrong).
offsetof() would certainly be very useful, but in the meantime
offsetof(Struct, field) can be replaced with:
Hi,
offsetof() is not supported by current Cython, and I have not found any
workaround (except hardcoding offsets for a specific architecture and
compiler, but this is obviously wrong).
offsetof(struct_type, member) is a C macro that expands to the offset
of the member in the struct, in bytes. C