Manual: ffi

class array extends type
not documented
volatile
+init(ctype : object, n = null)
ctype not documented
n not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
automem(ctype : object, count = null, clear = null)
ctype not documented
count not documented
clear not documented
returns not documented
Allocates a chunk of memory that is automatically deallocated when the object is being lost. Be aware that this method can be used to create flanging pointers.

Please keep the object around as long as the memory is used.

volatile
class bitmask extends type
not documented
volatile
+call(argv...)
argv not documented
returns not documented
not documented
volatile
byte : unsigned
not documented
volatile
class callback extends mem
not documented
volatile
+call(argv...)
argv not documented
returns not documented
not documented
volatile
+getitem()
returns not documented
not documented
volatile
+init(cfunc : type, callback : object)
cfunc not documented
callback not documented
returns not documented
not documented
volatile
+iter()
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
+setitem()
returns not documented
not documented
volatile
cast(obj : object, ctype : object)
obj C object
ctype Type to cast into
returns Converted object.
Casts the c-type of a c-object.
volatile
class cfunc extends type
not documented
volatile
+init(restype : object, argtypes_list : list)
restype not documented
argtypes_list not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
char : unsigned
not documented
volatile
double : floating
not documented
volatile
float : floating
not documented
volatile
free(mem : mem)
mem not documented
returns not documented
not documented
volatile
class handle extends mem
Cannot be instantiated yourself. Represents a handle into a C symbol.
volatile
+repr()
returns not documented
not documented
volatile
i16 : signed
not documented
volatile
i32 : signed
not documented
volatile
i64 : signed
not documented
volatile
i8 : signed
not documented
volatile
int : signed
not documented
volatile
class library extends object
Opens a shared C library

The path must be a string denoting the location of the library in the system. The apispec may be a function that is called with the name whenever getattr(name) is called. It returns a ctype or wrap -object to indicate what the library should do.

volatile
+init(name : str, apispec = null)
name not documented
apispec not documented
returns not documented
not documented
volatile
llong : signed
not documented
volatile
long : signed
not documented
volatile
malloc(ctype : object, count = null, clear = null)
ctype not documented
count not documented
clear not documented
returns not documented
Where the sizeof returns the size of the type, this thing returns a c-object of that size.

The c-object created with this method must be deallocated.

volatile
class mem extends object
not documented
volatile
memcpy(dst : mem, src : object, count : int)
dst not documented
src not documented
count not documented
returns not documented
not documented
volatile
memset(mem : mem, num : int, count : int)
mem not documented
num not documented
count not documented
returns not documented
not documented
volatile
class pointer extends type
not documented
volatile
+init(ctype : type)
ctype not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
class pool extends object
not documented
volatile
+init(autoclear = null)
autoclear not documented
returns not documented
not documented
volatile
alloc(pool : pool, ctype : type, count = null, clear = null)
pool not documented
ctype not documented
count not documented
clear not documented
returns not documented
not documented
volatile
free(pool : pool)
pool not documented
returns not documented
Deallocates the memory of mallocated c-object.
volatile
mark(pool : pool, obj : object)
pool not documented
obj not documented
returns not documented
not documented
volatile
ref(mem : object)
mem not documented
returns not documented
not documented
volatile
sbyte : signed
not documented
volatile
short : signed
not documented
volatile
class signed extends type
not documented
volatile
+repr()
returns not documented
not documented
volatile
size_t : unsigned
not documented
volatile
sizeof(ctype : object, count = null)
ctype not documented
count not documented
returns not documented
Returns the size of the ctype. If the ctype is parametric it returns the size of ctype[a], otherwise it returns the size of array of ctype of that size.
volatile
class struct extends type
not documented
volatile
+init(fields_list : list)
fields_list not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
u16 : unsigned
not documented
volatile
u32 : unsigned
not documented
volatile
u64 : unsigned
not documented
volatile
u8 : unsigned
not documented
volatile
ubyte : unsigned
not documented
volatile
uint : unsigned
not documented
volatile
ullong : unsigned
not documented
volatile
ulong : unsigned
not documented
volatile
class union extends type
not documented
volatile
+init(fields_list : list)
fields_list not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
class unsigned extends type
not documented
volatile
+init(obj = null)
obj not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile
ushort : unsigned
not documented
volatile
voidp : pointer
not documented
volatile
class wrap extends object
Associates a c-type with a name. It is used to denote whether a differently named symbol should be fetched, in the library -interface.
volatile
+init(cname : str, ctype : object)
cname not documented
ctype not documented
returns not documented
not documented
volatile
+repr()
returns not documented
not documented
volatile