Class for Built-in types.
static VALUE
builtin_type_inspect(VALUE self)
{
char buf[100];
BuiltinType *type;
Data_Get_Struct(self, BuiltinType, type);
snprintf(buf, sizeof(buf), "#<%s:%s size=%d alignment=%d>",
rb_obj_classname(self), type->name, (int) type->type.ffiType->size, type->type.ffiType->alignment);
return rb_str_new2(buf);
}
Generated with the Darkfish Rdoc Generator 2.