Shoutout to @samoht and @dbuenzli. Assemblage. The world needs it.
This won't work without ctypes >= 0.3.3. It is also potentially unsafe before the bounds check patch enters cstruct as it now assumes that any Ctypes.t can only be well-formed with respects to its buffer, and happily does pointer arithmetic without checking again.
Rework C interaction to use
ctypes
in stubs mode.Time to redo bindings: 3 hours.
Time to wrestle the build system: about 4 days.
Shoutout to @samoht and @dbuenzli. Assemblage. The world needs it.
This won't work without
ctypes >= 0.3.3
. It is also potentially unsafe before the bounds check patch enterscstruct
as it now assumes that anyCtypes.t
can only be well-formed with respects to its buffer, and happily does pointer arithmetic without checking again.