Home
last modified time | relevance | path

Searched refs:buffer_t (Results 1 – 5 of 5) sorted by relevance

/system/bt/osi/include/
Dbuffer.h24 typedef struct buffer_t buffer_t; typedef
29 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);
/system/bt/osi/src/
Dbuffer.cc29 struct buffer_t { struct
30 buffer_t* root; argument
36 buffer_t* buffer_new(size_t size) { in buffer_new() argument
39 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 …]
/system/bt/osi/test/fuzzers/buffer/
Dfuzz_buffer.cc30 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()
/system/bt/test/stub/
Dosi.cc412 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()
/system/bt/doc/
Dstyle_guide.md127 } 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);