JSctypes: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
m (Jctypes moved to JSctypes)
(Make TOC more sane, before writing)
Line 7: Line 7:
== JSctypes reference ==
== JSctypes reference ==


* Utility functions
* [[JSctypes/reference/Utility functions|Utility functions]]
* Finding and loading shared libraries
* [[JSctypes/reference/Libraries|Finding and loading shared libraries]]
* Non-prototyped function references
* [[JSctypes/reference/Types|Data types]]
* Prototyped function references
** Fundamental data types
* Data Types
** Fundamental Data Types
** Structured data types
** Structured data types
** Arrays and Pointers
** Arrays and pointers
* Callbacks
* [[JSctypes/reference/Functions|Functions]]
** Non-prototyped functions
** Function prototypes
** Prototyped functions
** Implementing Callback Functions

Revision as of 04:01, 16 August 2007

JSctypes: a foreign-function library for the SpiderMonkey JavaScript Engine

JSctypes is a foreign-function library for the SpiderMonkey JavaScript engine used by Mozilla. It provides C-compatible data types and allows JS code to call functions in shared libraries (DLLs) and implement callback functions. The interface and implementation are modeled on the Python ctypes module.

JSctypes can be used to provide pure-JavaScript wrappers for binary libraries.

JSctypes reference