• Home
  • Raw
  • Download

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 *) in byte_buffer_create()
27 calloc(1, sizeof(struct byte_buffer) + buffer_size_bytes); 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()
69 static inline unsigned int buf_queued(struct byte_buffer *buf) in buf_queued()
74 static inline unsigned int buf_available(const struct byte_buffer *buf) in buf_available()
79 static inline uint8_t *buf_read_pointer(struct byte_buffer *buf) in buf_read_pointer()
84 static inline uint8_t *buf_read_pointer_size(struct byte_buffer *buf, in buf_read_pointer_size()
91 static inline void buf_increment_read(struct byte_buffer *buf, size_t inc) in buf_increment_read()
99 static inline uint8_t *buf_write_pointer(struct byte_buffer *buf) in buf_write_pointer()
104 static inline uint8_t *buf_write_pointer_size(struct byte_buffer *buf, in buf_write_pointer_size()
111 static inline void buf_increment_write(struct byte_buffer *buf, size_t inc) in buf_increment_write()
121 static inline void buf_reset(struct byte_buffer *buf) in buf_reset()