top
|
index
|
Macaulay2 website
ForeignFunctions : Table of Contents
ForeignFunctions
-- foreign function interface
* voidstar = Thing
-- assign value to object at address
address
-- pointer to type or object
ForeignArrayType
-- foreign array type
foreignArrayType
-- construct a foreign array type
ForeignArrayType VisibleList
-- cast a Macaulay2 list to a foreign array
foreignFunction
-- construct a foreign function
ForeignIntegerType
-- foreign integer type
ForeignIntegerType Number
-- cast a Macaulay2 number to a foreign integer object
ForeignObject
-- foreign object
foreignObject
-- construct a foreign object
ForeignPointerArrayType
-- foreign type for NULL-terminated arrays of pointers
foreignPointerArrayType
-- construct a foreign pointer array type
ForeignPointerArrayType VisibleList
-- cast a Macaulay2 list to a foreign pointer array
ForeignPointerType
-- foreign pointer type
ForeignPointerType Pointer
-- cast a Macaulay2 pointer to a foreign pointer
ForeignRealType
-- foreign real type
ForeignRealType Number
-- cast a Macaulay2 number to a foreign real object
ForeignStringType
-- foreign string type
ForeignStringType String
-- cast a Macaulay2 string to a foreign string
ForeignStructType
-- foreign struct type
foreignStructType
-- construct a foreign struct type
ForeignStructType VisibleList
-- cast a hash table to a foreign struct
foreignSymbol
-- get a foreign symbol
ForeignType
-- abstract foreign type
ForeignType * voidstar
-- dereference a voidstar object
ForeignType ForeignObject
-- cast a foreign object to the given foreign type
ForeignType Pointer
-- dereference a pointer
ForeignUnionType
-- foreign union type
foreignUnionType
-- construct a foreign union type
ForeignUnionType Thing
-- cast a thing to a foreign union
ForeignVoidType
-- foreign void type
getMemory
-- allocate memory using the garbage collector
nullPointer
-- the null pointer
openSharedLibrary
-- open a shared library
Pointer
-- pointer to memory address
registerFinalizer(ForeignObject,Function)
-- register a finalizer for a foreign object
SharedLibrary
-- a shared library
size(ForeignType)
-- size of a foreign type
value(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing