In Files

Parent

Methods

FFI::Type::Builtin

Class for Built-in types.

Public Instance Methods

inspect click to toggle source
@return [String]
Inspect {Type::Builtin} object.
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);
}

[Validate]

Generated with the Darkfish Rdoc Generator 2.