Lines Matching refs:elements
350 // This is the elements that the circular buffer points to
351 void **elements;
353 void *get(size_t i) { assert(elements); return elements ? elements[i & mask] : NULL; }
354 void put(size_t i, void *data) { assert(elements); elements[i&mask] = data; }
376 // Copy elements from the old buffer to the new buffer
383 free(elements);
384 elements = buf;
2315 free(conn->inbuf.elements[i]);
2318 free(conn->outbuf.elements[i]);
2320 free(conn->inbuf.elements);
2321 free(conn->outbuf.elements);
2370 conn->outbuf.elements = (void**)calloc(16, sizeof(void*));
2371 conn->inbuf.elements = (void**)calloc(16, sizeof(void*));