4.1 The Foreign Function Interface

4.1.2 Creating foreign structure types

The foreign type system defines correspondences between Lisp data types and foreign data types so that areas of typed foreign memory can be accessed and set from Lisp. Correspondences between Lisp types and a set of low-level foreign data types are predefined. You can create and access new foreign structure types with the following constructs. The basic unit of size used is an 8-bit byte.

def-foreign-struct 
foreign-value
def-foreign-synonym-type 
free-foreign-pointer
foreign-aref 
make-foreign-pointer
foreign-string-value 
malloc-foreign-pointer
foreign-type-modulus 
typed-foreign-aref
foreign-type-remainder 
undefine-foreign-type

4.1.2.1 - Foreign types
4.1.2.2 - Foreign pointer objects
4.1.2.3 - Alignment requirements
4.1.2.4 - Redefining recursive types
4.1.2.5 - Forming unions
4.1.2.6 - Miscellaneous information
4.1.2.7 - Foreign pointers in saved images
4.1.2.8 - Examples

The Advanced User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker