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 = osi_calloc(sizeof(buffer_t) + size); in buffer_new()48 buffer_t *buffer_new_ref(const buffer_t *buf) { in buffer_new_ref()53 buffer_t *buffer_new_slice(const buffer_t *buf, size_t slice_size) { in buffer_new_slice()58 buffer_t *ret = osi_calloc(sizeof(buffer_t)); in buffer_new_slice()69 void buffer_free(buffer_t *buffer) { in buffer_free()84 void *buffer_ptr(const buffer_t *buf) { in buffer_ptr()89 size_t buffer_length(const buffer_t *buf) { in buffer_length()
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);74 bool l2cap_client_write(l2cap_client_t *client, buffer_t *packet);
55 static void fragment_packet(l2cap_client_t *client, buffer_t *packet);76 buffer_t *l2cap_buffer_new(size_t size) { in l2cap_buffer_new()77 buffer_t *buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new()78 buffer_t *slice = NULL; in l2cap_buffer_new()175 bool l2cap_client_write(l2cap_client_t *client, buffer_t *packet) { in l2cap_client_write()354 buffer_t *buffer = buffer_new(packet->len); in read_ready_cb()368 static void fragment_packet(l2cap_client_t *client, buffer_t *packet) { in fragment_packet()
123 } buffer_t;126 buffer_t *my_buffer = malloc(sizeof(buffer_t) + 128);138 } buffer_t;140 buffer_t *my_buffer = malloc(sizeof(buffer_t) + 128);