Home
last modified time | relevance | path

Searched refs:lwsac (Results 1 – 25 of 32) sorted by relevance

12

/external/libwebsockets/include/libwebsockets/
Dlws-lwsac.h50 struct lwsac;
104 lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size);
126 lwsac_use_backfill(struct lwsac **head, size_t ensure, size_t chunk_size);
144 lwsac_use_zero(struct lwsac **head, size_t ensure, size_t chunk_size);
157 lwsac_free(struct lwsac **head);
178 lwsac_detach(struct lwsac **head);
188 lwsac_reference(struct lwsac *head);
199 lwsac_unreference(struct lwsac **head);
232 lwsac_extend(struct lwsac *head, int amount);
256 lwsac_get_tail_pos(struct lwsac *lac);
[all …]
Dlws-struct.h63 struct lwsac *ac;
79 struct lwsac *ac_chunks;
254 struct lwsac **ac, int start, int limit);
Dlws-spa.h112 struct lwsac **ac; /* NULL, or pointer to lwsac * to contain all
Dlws-fts.h172 struct lwsac *results_head;
/external/libwebsockets/lib/misc/lwsac/
Dlwsac.c57 return sizeof(struct lwsac) + (first ? sizeof(struct lwsac_head) : 0); in lwsac_sizeof()
61 lwsac_get_tail_pos(struct lwsac *lac) in lwsac_get_tail_pos()
66 struct lwsac *
67 lwsac_get_next(struct lwsac *lac) in lwsac_get_next()
73 lwsac_extend(struct lwsac *head, int amount) in lwsac_extend()
76 struct lwsac *bf; in lwsac_extend()
96 _lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size, char backfill) in _lwsac_use()
100 struct lwsac *bf = *head; in _lwsac_use()
202 lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size) in lwsac_use()
208 lwsac_use_backfill(struct lwsac **head, size_t ensure, size_t chunk_size) in lwsac_use_backfill()
[all …]
DREADME.md3 ![lwsac flow](/doc-assets/lwsac.svg)
10 not tracked by lwsac at all, there is a "used" high-water mark for each chunk
17 strings or other unstructured data, lwsac is significantly more efficient than
20 [lwsac full public api](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-
26 * lwsac_use - allocate / use some memory from a lwsac
28 * \param head: pointer to the lwsac list object
35 * This also serves to init the lwsac if *head is NULL. Basically it does
42 lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size);
60 size, lwsac is extremely efficient even for huge numbers of small allocations.
62 This makes lwsac very effective when the total amount of allocation needed is
[all …]
Dprivate-lib-misc-lwsac.h45 struct lwsac { struct
46 struct lwsac *next; argument
47 struct lwsac *head; /* pointer back to the first chunk */ argument
57 struct lwsac *curr;
Dcached-file.c72 #define cache_file_to_lac(c) ((struct lwsac *)((char *)c - \
75 sizeof(struct lwsac)))
80 struct lwsac *lac = cache_file_to_lac(cache); in lwsac_use_cached_file_start()
90 struct lwsac *lac; in lwsac_use_cached_file_end()
111 struct lwsac *lac = cache_file_to_lac(*cache); in lwsac_use_cached_file_detach()
131 struct lwsac *lac = NULL; in lwsac_cached_file()
/external/libwebsockets/minimal-examples/api-tests/api-test-lwsac/
Dmain.c26 struct lwsac *lwsac = NULL; in main() local
41 m = lwsac_use(&lwsac, sizeof(*m), 0); in main()
54 lwsac_info(lwsac); in main()
78 lwsac_free(&lwsac); in main()
DREADME.md1 # lws api test lwsac
3 Demonstrates how to use and performs selftests for lwsac
18 $ ./lws-api-test-lwsac
19 [2018/10/09 09:14:17:4834] USER: LWS API selftest: lwsac
DCMakeLists.txt1 project(lws-api-test-lwsac)
5 set(SAMP lws-api-test-lwsac)
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
DREADME.md1 # lws api test lwsac
3 Demonstrates how to use and performs selftests for lwsac
18 $ ./lws-api-test-lwsac
19 [2018/10/09 09:14:17:4834] USER: LWS API selftest: lwsac
/external/libwebsockets/READMEs/
DREADME.lws_struct.md23 - huge linear strings are supported by storing to a temp lwsac of chained chunks,
24 which is written into a single linear chunk in the main lwsac once the
27 …- deserialization allocates into an [lwsac](../lib/misc/lwsac/README.md), so everything is inside …
32 lwsac frees the whole thing without having to walk it
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-form-post-lwsac/
DREADME.md1 # lws minimal http server form POST lwsac
3 Shows how to parse the form using an lwsac to hold the form data
14 $ ./lws-minimal-http-server-form-post-lwsac
DCMakeLists.txt1 project(lws-minimal-http-server-form-post-lwsac)
5 set(SAMP lws-minimal-http-server-form-post-lwsac)
Dminimal-http-server-form-post.c25 struct lwsac *ac;
/external/libwebsockets/minimal-examples/api-tests/
DREADME.md5 api-test-lwsac|LWS Allocated Chunks api
/external/libwebsockets/
DAndroid.bp84 "lib/misc/lwsac/cached-file.c",
85 "lib/misc/lwsac/lwsac.c",
Dchangelog56 - NEW: lwsac: additional features for constant folding support (strings that
57 already are in the lwsac can be pointed to without copying again), backfill
175 - NEW: lws allocated chunks (lwsac) - helpers for optimized mass allocation of small
179 [lwsac docs](https://libwebsockets.org/git/libwebsockets/tree/lib/misc/lwsac)
180 …[lwsac minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-test…
/external/libwebsockets/lib/misc/fts/
DREADME.md5 ![lwsac flow](/doc-assets/lws-fts.svg)
29 Searching returns a potentially very large lwsac allocated object, with contents
68 ## Result format inside the lwsac
70 A `struct lws_fts_result` at the start of the lwsac contains heads for linked-
71 lists of autocomplete and filepath results inside the lwsac.
93 results lwsac that contains up to 255 chars of the line from the original
Dtrie.c130 struct lwsac *lwsac_head;
131 struct lwsac *lwsac_input_head;
256 struct lwsac *lwsac_head = NULL; in lws_fts_create()
316 struct lwsac *lwsac_head = (*trie)->lwsac_head; in lws_fts_destroy()
Dtrie-fd.c240 struct lwsac **linetable_head) in lws_fts_cache_chunktable()
334 ac_record(struct lws_fts_file *jtf, struct lwsac **results_head, in ac_record()
620 struct lwsac *lt_head = NULL; in lws_fts_search()
/external/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c64 struct lwsac *lwsac_head;
84 struct lwsac *lwsac_head;
133 struct lwsac *lwsac_head = NULL; in scan_upload_dir()
/external/libwebsockets/minimal-examples/api-tests/api-test-lws_struct_sqlite/
Dmain.c77 struct lwsac *ac = NULL; in main()
/external/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
DREADME.md49 [2019/10/16 16:22:01:1119] N: lws_ss_policy_set: policy lwsac size: 1.796KiB, pad 11%

12