Lines Matching refs:bs
46 void bs_open (bin_stream_t * bs, void *data);
49 void bs_reset (bin_stream_t * bs);
53 unsigned bs_write_str(bin_stream_t * bs, char *data);
56 unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size);
59 unsigned bs_write_u8(bin_stream_t * bs, uint8_t data);
62 unsigned bs_write_u16(bin_stream_t * bs, uint16_t data);
65 unsigned bs_write_u32(bin_stream_t * bs, uint32_t data);
68 unsigned bs_write_u64(bin_stream_t * bs, uint64_t data);
76 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size);
79 void bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size);
82 uint8_t bs_read_u8(bin_stream_t * bs);
85 uint16_t bs_read_u16(bin_stream_t * bs);
88 uint32_t bs_read_u32(bin_stream_t * bs);
91 uint64_t bs_read_u64(bin_stream_t * bs);