bind(&block) Instance Public methods
new(cfunc, argtypes, abi = nil, &block) Class Public methods
set_ctypes(types) Instance Public methods Given types, calculate the necessary offset and for each union member
size(types) Class Public methods Given types, returns the size needed for the union. DL::CUnionEntity.size([DL::TYPE_DOUBLE, DL::TYPE_INT, DL::TYPE_CHAR, DL::TYPE_VOIDP]) => 8
malloc(types, func=nil) Class Public methods Allocates a C union the types provided. The C function func is called when the instance is garbage collected.
entity_class() Class Public methods accessor to DL::CUnionEntity
set_ctypes(types) Instance Public methods Given types, calculate the offsets and sizes for the types in the struct.
assign_names(members) Instance Public methods Set the names of the members in this C struct
[]=(name, val) Instance Public methods Set struct member name, to value val
[](name) Instance Public methods Fetch struct member name
Page 2153 of 2275