Lines Matching refs:u8
15 pub bytes: Vec<u8>,
29 pub fn write_u8(&mut self, byte: u8) -> Result<(), BytesWriteError> { in write_u8()
34 pub fn or_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in or_u8_at()
45 pub fn add_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in add_u8_at()
56 pub fn write_u8_at(&mut self, position: usize, byte: u8) -> Result<(), BytesWriteError> { in write_u8_at()
67 pub fn get(&mut self, position: usize) -> Option<&u8> { in get() argument
97 pub fn write(&mut self, buf: &[u8]) -> Result<(), BytesWriteError> { in write()
102 pub fn prepend(&mut self, buf: &[u8]) -> Result<(), BytesWriteError> { in prepend()
167 pub fn write_u8(&mut self, byte: u8) -> Result<(), BytesWriteError> { in write_u8()
187 pub fn write(&mut self, buf: &[u8]) -> Result<(), BytesWriteError> { in write()
240 let mut v: Vec<u8> = Vec::new(); in test_write_vec()
249 const FLV_HEADER: [u8; 9] = [ in test_write_vec()
271 let val = ((pts << 1) & 0xFE) as u8; in test_bit_opertion()
282 …let b9 = ((flags >> 2) & 0x30)/* 0011/0010 */ | (((pts >> 30) & 0x07) << 1) as u8 /* PTS 30-32 */ … in test_bit_opertion2()
285 let b10 = (pts >> 22) as u8; /* PTS 22-29 */ in test_bit_opertion2()
288 let b11 = ((pts >> 14) & 0xFE) as u8 /* PTS 15-21 */ | 0x01; /* marker_bit */ in test_bit_opertion2()
291 let b12 = (pts >> 7) as u8; /* PTS 7-14 */ in test_bit_opertion2()
294 let b13 = ((pts << 1) & 0xFE) as u8 /* PTS 0-6 */ | 0x01; /* marker_bit */ in test_bit_opertion2()
305 println!("=======b13{}=======", b12 as u8); in test_bit_opertion3()