Crate duktape_ffi [] [src]

EXPERIMENTAL: Low-level, unsafe wrapper arround the duktape API.

Note that some of this code is generated based on the specific compiler, operating system and processor, so various details may change depending on the system you're targeting. Do not assume that constants or integer sizes are the same everywhere!

We do not yet provide replacements for duktape function macros, but pull requests are very welcome.

Structs

Struct_duk_function_list_entry
Struct_duk_memory_functions
Struct_duk_number_list_entry

Constants

DUK_API_ENTRY_STACK
DUK_COMPILE_EVAL
DUK_COMPILE_FUNCTION
DUK_COMPILE_NORESULT
DUK_COMPILE_NOSOURCE
DUK_COMPILE_SAFE
DUK_COMPILE_STRICT
DUK_COMPILE_STRLEN
DUK_ENUM_ARRAY_INDICES_ONLY
DUK_ENUM_INCLUDE_INTERNAL
DUK_ENUM_INCLUDE_NONENUMERABLE
DUK_ENUM_NO_PROXY_BEHAVIOR
DUK_ENUM_OWN_PROPERTIES_ONLY
DUK_ENUM_SORT_ARRAY_INDICES
DUK_ERR_ALLOC_ERROR
DUK_ERR_API_ERROR
DUK_ERR_ASSERTION_ERROR
DUK_ERR_ERROR
DUK_ERR_EVAL_ERROR
DUK_ERR_INTERNAL_ERROR
DUK_ERR_RANGE_ERROR
DUK_ERR_REFERENCE_ERROR
DUK_ERR_SYNTAX_ERROR
DUK_ERR_TYPE_ERROR
DUK_ERR_UNCAUGHT_ERROR
DUK_ERR_UNIMPLEMENTED_ERROR
DUK_ERR_UNSUPPORTED_ERROR
DUK_ERR_URI_ERROR
DUK_EXEC_ERROR
DUK_EXEC_SUCCESS
DUK_HINT_NONE
DUK_HINT_NUMBER
DUK_HINT_STRING
DUK_INVALID_INDEX
DUK_LOG_DEBUG
DUK_LOG_ERROR
DUK_LOG_FATAL
DUK_LOG_INFO
DUK_LOG_TRACE
DUK_LOG_WARN
DUK_RET_ALLOC_ERROR
DUK_RET_API_ERROR
DUK_RET_ASSERTION_ERROR
DUK_RET_ERROR
DUK_RET_EVAL_ERROR
DUK_RET_INTERNAL_ERROR
DUK_RET_RANGE_ERROR
DUK_RET_REFERENCE_ERROR
DUK_RET_SYNTAX_ERROR
DUK_RET_TYPE_ERROR
DUK_RET_UNCAUGHT_ERROR
DUK_RET_UNIMPLEMENTED_ERROR
DUK_RET_UNSUPPORTED_ERROR
DUK_RET_URI_ERROR
DUK_STRING_PUSH_SAFE
DUK_THREAD_NEW_GLOBAL_ENV
DUK_TYPE_BOOLEAN
DUK_TYPE_BUFFER
DUK_TYPE_MASK_BOOLEAN
DUK_TYPE_MASK_BUFFER
DUK_TYPE_MASK_NONE
DUK_TYPE_MASK_NULL
DUK_TYPE_MASK_NUMBER
DUK_TYPE_MASK_OBJECT
DUK_TYPE_MASK_POINTER
DUK_TYPE_MASK_STRING
DUK_TYPE_MASK_THROW
DUK_TYPE_MASK_UNDEFINED
DUK_TYPE_NONE
DUK_TYPE_NULL
DUK_TYPE_NUMBER
DUK_TYPE_OBJECT
DUK_TYPE_POINTER
DUK_TYPE_STRING
DUK_TYPE_UNDEFINED
DUK_VARARGS
DUK_VERSION

Functions

duk_alloc
duk_alloc_raw
duk_base64_decode
duk_base64_encode
duk_call
duk_call_method
duk_call_prop
duk_char_code_at
duk_check_stack
duk_check_stack_top
duk_check_type
duk_check_type_mask
duk_compact
duk_compile_raw
duk_concat
duk_copy
duk_create_heap
duk_decode_string
duk_del_prop
duk_del_prop_index
duk_del_prop_string
duk_del_var
duk_destroy_heap
duk_dup
duk_dup_top
duk_enum
duk_equals
duk_error_raw
duk_eval_raw
duk_fatal
duk_free
duk_free_raw
duk_gc
duk_get_boolean
duk_get_buffer
duk_get_c_function
duk_get_context
duk_get_current_magic
duk_get_finalizer
duk_get_global_string
duk_get_int
duk_get_length
duk_get_lstring
duk_get_magic
duk_get_memory_functions
duk_get_number
duk_get_pointer
duk_get_prop
duk_get_prop_index
duk_get_prop_string
duk_get_prototype
duk_get_string
duk_get_top
duk_get_top_index
duk_get_type
duk_get_type_mask
duk_get_uint
duk_get_var
duk_has_prop
duk_has_prop_index
duk_has_prop_string
duk_has_var
duk_hex_decode
duk_hex_encode
duk_insert
duk_is_array
duk_is_boolean
duk_is_bound_function
duk_is_buffer
duk_is_c_function
duk_is_callable
duk_is_constructor_call
duk_is_dynamic_buffer
duk_is_ecmascript_function
duk_is_fixed_buffer
duk_is_function
duk_is_nan
duk_is_null
duk_is_null_or_undefined
duk_is_number
duk_is_object
duk_is_pointer
duk_is_primitive
duk_is_strict_call
duk_is_string
duk_is_thread
duk_is_undefined
duk_is_valid_index
duk_join
duk_json_decode
duk_json_encode
duk_log
duk_map_string
duk_new
duk_next
duk_normalize_index
duk_pcall
duk_pcall_method
duk_pcall_prop
duk_pop
duk_pop_2
duk_pop_3
duk_pop_n
duk_push_array
duk_push_boolean
duk_push_buffer
duk_push_c_function
duk_push_context_dump
duk_push_current_function
duk_push_current_thread
duk_push_dynamic_buffer
duk_push_error_object_raw
duk_push_error_object_string

A wrapper around duk_push_error_object, which relies on varargs in the original API.

duk_push_false
duk_push_fixed_buffer
duk_push_global_object
duk_push_global_stash
duk_push_heap_stash
duk_push_int
duk_push_lstring
duk_push_nan
duk_push_null
duk_push_number
duk_push_object
duk_push_pointer
duk_push_sprintf
duk_push_string
duk_push_string_file_raw
duk_push_this
duk_push_thread_raw
duk_push_thread_stash
duk_push_true
duk_push_uint
duk_push_undefined
duk_put_function_list
duk_put_global_string
duk_put_number_list
duk_put_prop
duk_put_prop_index
duk_put_prop_string
duk_put_var
duk_realloc
duk_realloc_raw
duk_remove
duk_replace
duk_require_boolean
duk_require_buffer
duk_require_c_function
duk_require_context
duk_require_int
duk_require_lstring
duk_require_normalize_index
duk_require_null
duk_require_number
duk_require_pointer
duk_require_stack
duk_require_stack_top
duk_require_string
duk_require_top_index
duk_require_uint
duk_require_undefined
duk_require_valid_index
duk_resize_buffer
duk_safe_call
duk_safe_to_lstring
duk_set_finalizer
duk_set_global_object
duk_set_magic
duk_set_prototype
duk_set_top
duk_strict_equals
duk_substring
duk_swap
duk_swap_top
duk_throw
duk_to_boolean
duk_to_buffer
duk_to_defaultvalue
duk_to_dynamic_buffer
duk_to_fixed_buffer
duk_to_int
duk_to_int32
duk_to_lstring
duk_to_null
duk_to_number
duk_to_object
duk_to_pointer
duk_to_primitive
duk_to_string
duk_to_uint
duk_to_uint16
duk_to_uint32
duk_to_undefined
duk_trim
duk_xcopymove_raw

Type Definitions

duk_alloc_function
duk_bool_t
duk_c_function
duk_codepoint_t
duk_context
duk_decode_char_function
duk_double_t
duk_errcode_t
duk_fatal_function
duk_free_function
duk_function_list_entry
duk_idx_t
duk_int32_t
duk_int_t
duk_map_char_function
duk_memory_functions
duk_number_list_entry
duk_ptrdiff_t
duk_realloc_function
duk_ret_t
duk_safe_call_function
duk_size_t
duk_uarridx_t
duk_ucodepoint_t
duk_uint16_t
duk_uint32_t
duk_uint_t