Fiddle::CStructEntity

class Fiddle::CStructEntity

Parent:
Fiddle::Pointer

A C struct wrapper

Public Class Methods

malloc(types, func = nil) Show source

Allocates a C struct with the types provided.

When the instance is garbage collected, the C function func is called.

# File ext/fiddle/lib/fiddle/struct.rb, line