Lines Matching refs:bs
46 void bs_open (bin_stream_t * bs, void *data);
49 void bs_reset (bin_stream_t * bs);
52 unsigned bs_write_str(bin_stream_t * bs, char *data);
55 unsigned bs_write_buf(bin_stream_t * bs, char *data, unsigned data_size);
58 unsigned bs_write_u8(bin_stream_t * bs, uint8_t data);
61 unsigned bs_write_u16(bin_stream_t * bs, uint16_t data);
64 unsigned bs_write_u32(bin_stream_t * bs, uint32_t data);
67 unsigned bs_write_u64(bin_stream_t * bs, uint64_t data);
74 char *bs_read_str(bin_stream_t * bs, char *buf, unsigned buf_size);
77 void bs_read_buf(bin_stream_t * bs, char *buf, unsigned buf_size);
80 uint8_t bs_read_u8(bin_stream_t * bs);
83 uint16_t bs_read_u16(bin_stream_t * bs);
86 uint32_t bs_read_u32(bin_stream_t * bs);
89 uint64_t bs_read_u64(bin_stream_t * bs);