Articles tagged: js-ctypes
Found 35 documents
- Mozilla/Add-ons/Code_snippets/Finding_Window_Handles When working on Windows platforms, many APIs and frameworks require a window handle (HWND type). ...
- Mozilla/Add-ons/Code_snippets/StringView As web applications become more and more powerful, adding features such as audio and video ...
- Mozilla/JavaScript_code_modules/JNI.jsm The JNI.jsm JavaScript code module abstracts all of the js-ctypes required for writing JNI code. ...
- Mozilla/JavaScript_code_modules/JNI.jsm/Port_Java_code_to_JNI.jsm This article will follow the Android Developers :: API Guides - Toasts tutorial. It will use the ...
- Mozilla/JavaScript_code_modules/PromiseWorker.jsm A PromiseWorker is a ChromeWorker except instead of calling postMessage() to send a message, you ...
- Mozilla/js-ctypes js-ctypes allows application and extension code to call back and forth to native code written in ...
- Mozilla/js-ctypes/Examples These examples demonstrate how to use js-ctypes.
- Mozilla/js-ctypes/Examples/Add_to_iPhoto This extension for Mac OS X serves as a demonstration of how to use js-ctypes to call Mac OS X ...
- Mozilla/js-ctypes/Examples/Using_COM_from_js-ctypes The Windows API mostly concerns itself with the interaction between the operating system and an ...
- Mozilla/js-ctypes/Examples/Using_C_structs_and_pointers In this example, we show how to use C structs and pointers with js-ctypes.
- Mozilla/js-ctypes/Examples/Using_Objective-C_from_js-ctypes Objective-C has its own syntax, and it cannot be written directly with js-ctypes. This ...
- Mozilla/js-ctypes/js-ctypes_reference This doc is a work in progress.
- Mozilla/js-ctypes/js-ctypes_reference/ABI This article describes the calling conventions with respect to js-ctypes while programming x86 ...
- Mozilla/js-ctypes/js-ctypes_reference/ArrayType ArrayType represents C arrays
- Mozilla/js-ctypes/js-ctypes_reference/CData A CData object represents a C value or function located in memory.
- Mozilla/js-ctypes/js-ctypes_reference/CType All data types declared using the js-ctypes API are represented by CType objects. These objects ...
- Mozilla/js-ctypes/js-ctypes_reference/ctypes The ctypes object contains methods and predefined data types used to create and manage a library.
- Mozilla/js-ctypes/js-ctypes_reference/FunctionType Returns a new CType object describing a C function.
- Mozilla/js-ctypes/js-ctypes_reference/Int64 Because JavaScript doesn't currently include standard support for 64-bit integer values, ...
- Mozilla/js-ctypes/js-ctypes_reference/Library The Library object represents a native library loaded by the ctypes open() method. Its methods ...
- Mozilla/js-ctypes/js-ctypes_reference/PointerType Returns a new CType object describing a new pointer data type.
- Mozilla/js-ctypes/js-ctypes_reference/StructType Returns a CType object describing a new structure data type. This data type provides the ability ...
- Mozilla/js-ctypes/js-ctypes_reference/UInt64 As JavaScript doesn't currently include standard support for 64-bit integer values, js-ctypes ...
- Mozilla/js-ctypes/Using_js-ctypes Before you can use js-ctypes, you need to import the ctypes.jsm code module. This is as simple ...
- Mozilla/js-ctypes/Using_js-ctypes/ctypes.open At the heart of js-ctypes is the ctypes.open() function. This must be called before any work can ...
- Mozilla/js-ctypes/Using_js-ctypes/Debugging_Tips The scratchpad is an excellent tool for running js-ctypes without having to zip up any add-on ...
- Mozilla/js-ctypes/Using_js-ctypes/Declaring_and_calling_functions Functions are declared using the Library object's declare() method. Once declared, functions can ...
- Mozilla/js-ctypes/Using_js-ctypes/Declaring_and_Using_Callbacks C functions occasionally take function pointers as arguments, which are generally used as ...
- Mozilla/js-ctypes/Using_js-ctypes/Declaring_types The ctypes object offers a number of constructor methods that let you declare types. Every type ...
- Mozilla/js-ctypes/Using_js-ctypes/Memory_Management If JS code creates a structure or an array, that memory will be valid as long as the JS object ...
- Mozilla/js-ctypes/Using_js-ctypes/Standard_OS_Libraries This article gives the names of standard libraries that can be accessed with js-ctypes. These ...
- Mozilla/js-ctypes/Using_js-ctypes/Type_conversion In js-ctypes, data could be converted implicitly when passing to or returning from a ...
- Mozilla/js-ctypes/Using_js-ctypes/Working_with_ArrayBuffers ArrayBuffer s are simply byte arrays. In js-ctypes this is a ctypes.uint8_t.array(###) ...
- Mozilla/js-ctypes/Using_js-ctypes/Working_with_data Data types for use with js-ctypes are represented by CType objects. These are JavaScript ...
- Web/API/ChromeWorker If you're developing privileged code, and would like to create a worker that can use js-ctypes ...