class FFI::Struct

def offset_of(name)

(see FFI::StructLayout#offset_of)
def offset_of(name)
  self.class.offset_of(name)
end