Lines Matching refs:byte_buffer
13 struct byte_buffer { struct
23 static inline struct byte_buffer *byte_buffer_create(size_t buffer_size_bytes) in byte_buffer_create() argument
25 struct byte_buffer *buf; in byte_buffer_create()
26 buf = (struct byte_buffer *)calloc(1, sizeof(struct byte_buffer) + in byte_buffer_create()
35 static inline void byte_buffer_set_used_size(struct byte_buffer *buf, in byte_buffer_set_used_size()
42 static inline void byte_buffer_destroy(struct byte_buffer **buf) in byte_buffer_destroy()
48 static inline unsigned int buf_writable(struct byte_buffer *buf) in buf_writable()
58 static inline unsigned int buf_readable(struct byte_buffer *buf) in buf_readable()
70 static inline unsigned int buf_adjust_readable(struct byte_buffer *buf, in buf_adjust_readable()
78 static inline unsigned int buf_queued(struct byte_buffer *buf) in buf_queued()
83 static inline unsigned int buf_available(const struct byte_buffer *buf) in buf_available()
88 static inline uint8_t *buf_read_pointer(struct byte_buffer *buf) in buf_read_pointer()
93 static inline uint8_t *buf_read_pointer_size(struct byte_buffer *buf, in buf_read_pointer_size()
100 static inline void buf_increment_read(struct byte_buffer *buf, size_t inc) in buf_increment_read()
108 static inline uint8_t *buf_write_pointer(struct byte_buffer *buf) in buf_write_pointer()
113 static inline uint8_t *buf_write_pointer_size(struct byte_buffer *buf, in buf_write_pointer_size()
120 static inline void buf_increment_write(struct byte_buffer *buf, size_t inc) in buf_increment_write()
130 static inline void buf_reset(struct byte_buffer *buf) in buf_reset()