Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
struct(signature)
public
Creates a class to wrap the C struct
described by signature.
MyStruct = struct ['int i', 'char c']
# File ext/dl/lib/dl/import.rb, line 188
def struct(signature)
@type_alias ||= nil
tys, mems = parse_struct_signature(signature, @type_alias)
DL::CStructBuilder.create(CStruct, tys, mems)
end