Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | duk_hbuffer |
struct | duk_hbuffer_fixed |
struct | duk_hbuffer_dynamic |
struct | duk_hbuffer_external |
Functions | |
DUK_INTERNAL_DECL duk_hbuffer * | duk_hbuffer_alloc (duk_heap *heap, duk_size_t size, duk_small_uint_t flags, void **out_bufdata) |
DUK_INTERNAL_DECL void * | duk_hbuffer_get_dynalloc_ptr (duk_heap *heap, void *ud) |
DUK_INTERNAL_DECL void | duk_hbuffer_resize (duk_hthread *thr, duk_hbuffer_dynamic *buf, duk_size_t new_size) |
DUK_INTERNAL_DECL void | duk_hbuffer_reset (duk_hthread *thr, duk_hbuffer_dynamic *buf) |
#define DUK_HBUFFER_ADD_SIZE | ( | x, | |
dv ) |
Definition at line 81 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_CLEAR_DYNAMIC | ( | x | ) | DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_DYNAMIC) |
Definition at line 32 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_CLEAR_EXTERNAL | ( | x | ) | DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_EXTERNAL) |
Definition at line 33 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_ADD_SIZE | ( | x, | |
dv ) DUK_HBUFFER_ADD_SIZE((duk_hbuffer *) (x), (dv)) |
Definition at line 94 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_GET_DATA_PTR | ( | heap, | |
x ) ((x)->curr_alloc) |
Definition at line 112 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_GET_SIZE | ( | x | ) | DUK_HBUFFER_GET_SIZE((duk_hbuffer *) (x)) |
Definition at line 92 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_SET_DATA_PTR | ( | heap, | |
x, | |||
v ) |
Definition at line 113 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_SET_DATA_PTR_NULL | ( | heap, | |
x ) |
Definition at line 116 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_SET_SIZE | ( | x, | |
v ) DUK_HBUFFER_SET_SIZE((duk_hbuffer *) (x), (v)) |
Definition at line 93 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_DYNAMIC_SUB_SIZE | ( | x, | |
dv ) DUK_HBUFFER_SUB_SIZE((duk_hbuffer *) (x), (dv)) |
Definition at line 95 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_EXTERNAL_GET_DATA_PTR | ( | heap, | |
x ) ((void *) (x)->curr_alloc) |
Definition at line 134 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_EXTERNAL_GET_SIZE | ( | x | ) | DUK_HBUFFER_GET_SIZE((duk_hbuffer *) (x)) |
Definition at line 97 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_EXTERNAL_SET_DATA_PTR | ( | heap, | |
x, | |||
v ) |
Definition at line 136 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_EXTERNAL_SET_DATA_PTR_NULL | ( | heap, | |
x ) |
Definition at line 139 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_EXTERNAL_SET_SIZE | ( | x, | |
v ) DUK_HBUFFER_SET_SIZE((duk_hbuffer *) (x), (v)) |
Definition at line 98 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_FIXED_GET_DATA_PTR | ( | heap, | |
x ) ((duk_uint8_t *) (((duk_hbuffer_fixed *) (x)) + 1)) |
Definition at line 100 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_FIXED_GET_SIZE | ( | x | ) | DUK_HBUFFER_GET_SIZE((duk_hbuffer *) (x)) |
Definition at line 89 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_FIXED_SET_SIZE | ( | x, | |
v ) DUK_HBUFFER_SET_SIZE((duk_hbuffer *) (x)) |
Definition at line 90 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_FLAG_DYNAMIC DUK_HEAPHDR_USER_FLAG(0) /* buffer is behind a pointer, dynamic or external */ |
Definition at line 23 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_FLAG_EXTERNAL DUK_HEAPHDR_USER_FLAG(1) /* buffer pointer is to an externally allocated buffer */ |
Definition at line 24 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_GET_DATA_PTR | ( | heap, | |
x ) |
Definition at line 161 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_GET_SIZE | ( | x | ) | (((duk_hbuffer *) (x))->size) |
Definition at line 77 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_HAS_DYNAMIC | ( | x | ) | DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_DYNAMIC) |
Definition at line 26 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_HAS_EXTERNAL | ( | x | ) | DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_EXTERNAL) |
Definition at line 27 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_MAX_BYTELEN (0x7ffffffeUL) |
Definition at line 51 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_SET_DYNAMIC | ( | x | ) | DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_DYNAMIC) |
Definition at line 29 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_SET_EXTERNAL | ( | x | ) | DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_FLAG_EXTERNAL) |
Definition at line 30 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_SET_SIZE | ( | x, | |
v ) |
Definition at line 78 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
#define DUK_HBUFFER_SUB_SIZE | ( | x, | |
dv ) |
Definition at line 84 of file duktape-1.8.0/src-separate/duk_hbuffer.h.
DUK_INTERNAL_DECL duk_hbuffer * duk_hbuffer_alloc | ( | duk_heap * | heap, |
duk_size_t | size, | ||
duk_small_uint_t | flags, | ||
void ** | out_bufdata ) |
Definition at line 40476 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ALLOC, DUK_ALLOC_ZEROED, DUK_ASSERT, DUK_BUF_FLAG_DYNAMIC, DUK_BUF_FLAG_EXTERNAL, DUK_BUF_FLAG_NOZERO, DUK_D, DUK_DD, DUK_DDD, DUK_DDDPRINT, DUK_DDPRINT, DUK_DPRINT, DUK_FREE, DUK_HBUFFER_DYNAMIC_GET_DATA_PTR, DUK_HBUFFER_DYNAMIC_SET_DATA_PTR, DUK_HBUFFER_EXTERNAL_GET_DATA_PTR, DUK_HBUFFER_EXTERNAL_SET_DATA_PTR, DUK_HBUFFER_MAX_BYTELEN, DUK_HBUFFER_SET_DYNAMIC, DUK_HBUFFER_SET_EXTERNAL, DUK_HBUFFER_SET_SIZE, DUK_HEAP_INSERT_INTO_HEAP_ALLOCATED, DUK_HEAPHDR_SET_TYPE, DUK_HTYPE_BUFFER, DUK_MEMZERO, DUK_UNREF, error(), duk_hbuffer::hdr, and NULL.
Referenced by duk_push_buffer_raw().
DUK_INTERNAL_DECL void * duk_hbuffer_get_dynalloc_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 40593 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_HBUFFER_DYNAMIC_GET_DATA_PTR, and DUK_UNREF.
Referenced by duk_hbuffer_resize().
DUK_INTERNAL_DECL void duk_hbuffer_reset | ( | duk_hthread * | thr, |
duk_hbuffer_dynamic * | buf ) |
Definition at line 40672 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, duk_hbuffer_resize(), DUK_MEMZERO, and NULL.
Referenced by duk__reset_func_for_pass2().
DUK_INTERNAL_DECL void duk_hbuffer_resize | ( | duk_hthread * | thr, |
duk_hbuffer_dynamic * | buf, | ||
duk_size_t | new_size ) |
Definition at line 40615 of file duktape-1.5.2/src-noline/duktape.c.
References DUK_ASSERT, DUK_DDD, DUK_DDDPRINT, DUK_ERROR_ALLOC_DEFMSG, DUK_ERROR_RANGE, DUK_HBUFFER_DYNAMIC_GET_DATA_PTR, DUK_HBUFFER_DYNAMIC_GET_SIZE, DUK_HBUFFER_DYNAMIC_SET_DATA_PTR, DUK_HBUFFER_DYNAMIC_SET_SIZE, duk_hbuffer_get_dynalloc_ptr(), DUK_HBUFFER_HAS_DYNAMIC, DUK_HBUFFER_HAS_EXTERNAL, DUK_HBUFFER_MAX_BYTELEN, DUK_MEMZERO, DUK_REALLOC_INDIRECT, duk_hthread::heap, and NULL.
Referenced by duk__add_label(), duk__appendbuffer(), duk__initbuffer(), duk__reset_labels_to_length(), duk_bw_compact(), duk_bw_resize(), duk_hbuffer_reset(), duk_hobject_pc2line_pack(), and duk_resize_buffer().