snow-data (rubygems): Snow-Data is a gem for allocating memory and working with existing blocks of memory in a moderately safe but still technically really, really unsafe way. It also provides functionality for defining C-struct classes, including those with other structs as members. 
Keywords: c|cstruct|ffi|ruby