Searched refs:buffer_t (Results 1 – 5 of 5) sorted by relevance
24 typedef struct buffer_t buffer_t; typedef29 buffer_t* buffer_new(size_t size);36 buffer_t* buffer_new_ref(const buffer_t* buf);42 buffer_t* buffer_new_slice(const buffer_t* buf, size_t slice_size);45 void buffer_free(buffer_t* buf);52 void* buffer_ptr(const buffer_t* buf);56 size_t buffer_length(const buffer_t* buf);
29 struct buffer_t { struct30 buffer_t* root; argument36 buffer_t* buffer_new(size_t size) { in buffer_new() argument39 buffer_t* buffer = in buffer_new()40 static_cast<buffer_t*>(osi_calloc(sizeof(buffer_t) + size)); in buffer_new()49 buffer_t* buffer_new_ref(const buffer_t* buf) { in buffer_new_ref()54 buffer_t* buffer_new_slice(const buffer_t* buf, size_t slice_size) { in buffer_new_slice()59 buffer_t* ret = static_cast<buffer_t*>(osi_calloc(sizeof(buffer_t))); in buffer_new_slice()70 void buffer_free(buffer_t* buffer) { in buffer_free()83 void* buffer_ptr(const buffer_t* buf) { in buffer_ptr()[all …]
30 buffer_t* buf = buffer_new(buf_size); in LLVMFuzzerTestOneInput()35 std::vector<buffer_t*> slices; in LLVMFuzzerTestOneInput()45 buffer_t* new_slice = nullptr; in LLVMFuzzerTestOneInput()
412 buffer_t* buffer_new_ref(const buffer_t* buf) { in buffer_new_ref()416 buffer_t* buffer_new_slice(const buffer_t* buf, size_t slice_size) { in buffer_new_slice()420 size_t buffer_length(const buffer_t* buf) { in buffer_length()424 void buffer_free(buffer_t* buffer) { mock_function_count_map[__func__]++; } in buffer_free()425 void* buffer_ptr(const buffer_t* buf) { in buffer_ptr()
127 } buffer_t;130 buffer_t *my_buffer = malloc(sizeof(buffer_t) + 128);142 } buffer_t;144 buffer_t *my_buffer = malloc(sizeof(buffer_t) + 128);