ruby / fiddle

A libffi wrapper for Ruby.
BSD 2-Clause "Simplified" License
158 stars 36 forks source link

struct implement memoryview #82

Open dsisnero opened 3 years ago

dsisnero commented 3 years ago

since c struct are contiguous in memory - have them implement the memoryview interface. That way we can use them with Fiddle::MemoryView

kou commented 3 years ago

It's a good idea.