Searched refs:ringbuf (Results 1 - 5 of 5) sorted by relevance
/third_party/nghttp2/lib/ |
H A D | nghttp2_hd.c | 593 static int hd_ringbuf_init(nghttp2_hd_ringbuf *ringbuf, size_t bufsize, in hd_ringbuf_init() argument 598 ringbuf->buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size); in hd_ringbuf_init() 599 if (ringbuf->buffer == NULL) { in hd_ringbuf_init() 602 ringbuf->mask = size - 1; in hd_ringbuf_init() 603 ringbuf->first = 0; in hd_ringbuf_init() 604 ringbuf->len = 0; in hd_ringbuf_init() 608 static nghttp2_hd_entry *hd_ringbuf_get(nghttp2_hd_ringbuf *ringbuf, in hd_ringbuf_get() argument 610 assert(idx < ringbuf->len); in hd_ringbuf_get() 611 return ringbuf->buffer[(ringbuf in hd_ringbuf_get() 614 hd_ringbuf_reserve(nghttp2_hd_ringbuf *ringbuf, size_t bufsize, nghttp2_mem *mem) hd_ringbuf_reserve() argument 639 hd_ringbuf_free(nghttp2_hd_ringbuf *ringbuf, nghttp2_mem *mem) hd_ringbuf_free() argument 653 hd_ringbuf_push_front(nghttp2_hd_ringbuf *ringbuf, nghttp2_hd_entry *ent, nghttp2_mem *mem) hd_ringbuf_push_front() argument 669 hd_ringbuf_pop_back(nghttp2_hd_ringbuf *ringbuf) hd_ringbuf_pop_back() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_hd.c | 593 static int hd_ringbuf_init(nghttp2_hd_ringbuf *ringbuf, size_t bufsize, in hd_ringbuf_init() argument 598 ringbuf->buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size); in hd_ringbuf_init() 599 if (ringbuf->buffer == NULL) { in hd_ringbuf_init() 602 ringbuf->mask = size - 1; in hd_ringbuf_init() 603 ringbuf->first = 0; in hd_ringbuf_init() 604 ringbuf->len = 0; in hd_ringbuf_init() 608 static nghttp2_hd_entry *hd_ringbuf_get(nghttp2_hd_ringbuf *ringbuf, in hd_ringbuf_get() argument 610 assert(idx < ringbuf->len); in hd_ringbuf_get() 611 return ringbuf->buffer[(ringbuf in hd_ringbuf_get() 614 hd_ringbuf_reserve(nghttp2_hd_ringbuf *ringbuf, size_t bufsize, nghttp2_mem *mem) hd_ringbuf_reserve() argument 639 hd_ringbuf_free(nghttp2_hd_ringbuf *ringbuf, nghttp2_mem *mem) hd_ringbuf_free() argument 653 hd_ringbuf_push_front(nghttp2_hd_ringbuf *ringbuf, nghttp2_hd_entry *ent, nghttp2_mem *mem) hd_ringbuf_push_front() argument 669 hd_ringbuf_pop_back(nghttp2_hd_ringbuf *ringbuf) hd_ringbuf_pop_back() argument [all...] |
/third_party/libbpf/src/ |
H A D | bpf_helper_defs.h | 3148 * Copy *size* bytes from *data* into a ring buffer *ringbuf*. 3164 static long (*bpf_ringbuf_output)(void *ringbuf, void *data, __u64 size, __u64 flags) = (void *) 130; 3169 * Reserve *size* bytes of payload in a ring buffer *ringbuf*. 3176 static void *(*bpf_ringbuf_reserve)(void *ringbuf, __u64 size, __u64 flags) = (void *) 131; 3233 static __u64 (*bpf_ringbuf_query)(void *ringbuf, __u64 flags) = (void *) 134; 4475 * Reserve *size* bytes of payload in a ring buffer *ringbuf* 4485 static long (*bpf_ringbuf_reserve_dynptr)(void *ringbuf, __u32 size, __u64 flags, struct bpf_dynptr *ptr) = (void *) 198;
|
H A D | Makefile | 57 btf_dump.o hashmap.o ringbuf.o strset.o linker.o gen_loader.o \
|
/third_party/rust/crates/memchr/bench/data/code/ |
H A D | rust-library.rs | 11852 let ringbuf: VecDeque<_> = (0..10).collect(); in test_show() 11853 assert_eq!(format!("{:?}", ringbuf), "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"); in test_show() 11855 let ringbuf: VecDeque<_> = vec!["just", "one", "test", "more"].iter().cloned().collect(); in test_show() 11856 assert_eq!(format!("{:?}", ringbuf), "[\"just\", \"one\", \"test\", \"more\"]"); in test_show() [all...] |
Completed in 53 milliseconds