Searched refs:buffer_t (Results 1 – 5 of 5) sorted by relevance
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 …]
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);
25 typedef struct buffer_t buffer_t; typedef31 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);
59 static void fragment_packet(l2cap_client_t* client, buffer_t* packet);81 buffer_t* l2cap_buffer_new(size_t size) { in l2cap_buffer_new()82 buffer_t* buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new()83 buffer_t* slice = NULL; in l2cap_buffer_new()175 bool l2cap_client_write(l2cap_client_t* client, buffer_t* packet) { in l2cap_client_write()373 buffer_t* buffer = buffer_new(packet->len); in read_ready_cb()388 static void fragment_packet(l2cap_client_t* client, buffer_t* packet) { in fragment_packet()
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);