Searched refs:byte (Results 1 – 4 of 4) sorted by relevance
| /xiu/library/bytesio/src/ |
| H A D | bits_writer.rs | 149 let byte = bit_writer.get_current_bytes(); in test_write_bit() localVariable 150 assert!(byte.to_vec()[0] == 0x2); in test_write_bit() 171 let byte = bit_writer.get_current_bytes(); in test_write_n_bits() localVariable 176 println!("=={}==", byte.to_vec()[0]); in test_write_n_bits() 178 assert!(byte.to_vec()[0] == 0xC0); //0x11000000 in test_write_n_bits() 195 let byte = bit_writer.get_current_bytes(); in test_bits_aligment_8() localVariable 196 assert!(byte.to_vec()[0] == 0xC0); //0x11000000 in test_bits_aligment_8()
|
| H A D | bytes_writer.rs | 29 pub fn write_u8(&mut self, byte: u8) -> Result<(), BytesWriteError> { in write_u8() 30 self.bytes.write_u8(byte)?; in write_u8() 34 pub fn or_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in or_u8_at() 40 self.bytes[position] |= byte; in or_u8_at() 45 pub fn add_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in add_u8_at() 51 self.bytes[position] += byte; in add_u8_at() 56 pub fn write_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in write_u8_at() 62 self.bytes[position] = byte; in write_u8_at() 167 pub fn write_u8(&mut self, byte: u8) -> Result<(), BytesWriteError> { in write_u8() 168 self.bytes_writer.write_u8(byte) in write_u8()
|
| H A D | bits_reader.rs | 41 let byte = self.reader.read_u8()?; in read_byte() localVariable 42 Ok(byte) in read_byte()
|
| /xiu/protocol/rtmp/src/chunk/ |
| H A D | unpacketizer.rs | 281 let byte = self.reader.read_u8()?; in read_basic_header() localVariable 283 let format_id = (byte >> 6) & 0b00000011; in read_basic_header() 284 let mut csid = (byte & 0b00111111) as u32; in read_basic_header() 315 byte in read_basic_header()
|