cstruct is an utility that convert C struct for Ruby.
inspired by aamine's dbf
http://arton.no-ip.info/data/cstruct/cstruct-0.1.1.zip
require 'cstruct' class Foo include C HTTP_VERSION = Struct.define { USHORT :MajorVersion; USHORT :MinorVersion; } HTTP_KNOWN_HEADER = Struct.define { USHORT :RawValueLength; PCSTR :pRawValue; } ... end
Keyword(s):
References: