Home
last modified time | relevance | path

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

/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/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/stack/include/
Dl2cap_client.h25 typedef struct buffer_t buffer_t; typedef
31 void (*read_ready)(l2cap_client_t* client, buffer_t* packet, void* context);
39 buffer_t* l2cap_buffer_new(size_t size);
79 bool l2cap_client_write(l2cap_client_t* client, buffer_t* packet);
/system/bt/stack/l2cap/
Dl2cap_client.cc60 static void fragment_packet(l2cap_client_t* client, buffer_t* packet);
82 buffer_t* l2cap_buffer_new(size_t size) { in l2cap_buffer_new()
83 buffer_t* buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new()
84 buffer_t* slice = NULL; in l2cap_buffer_new()
177 bool l2cap_client_write(l2cap_client_t* client, buffer_t* packet) { in l2cap_client_write()
375 buffer_t* buffer = buffer_new(packet->len); in read_ready_cb()
390 static void fragment_packet(l2cap_client_t* client, buffer_t* packet) { in fragment_packet()
/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);