Lines Matching refs:u8
24 value: u8,
85 buf: &mut [u8], in read() argument
162 buf: &[u8], in write() argument
326 let zeroes: Vec<u8> = vec![0u8; (range_end - range_start) as usize]; in zero_range()
714 short_name: &[u8; 11], in create_dir_entries()
897 pub const READ_ONLY: u8 = 1 << 0;
898 pub const HIDDEN: u8 = 1 << 1;
899 pub const SYSTEM: u8 = 1 << 2;
900 pub const VOLUME_ID: u8 = 1 << 3;
901 pub const DIRECTORY: u8 = 1 << 4;
902 pub const ARCHIVE: u8 = 1 << 5;
903 pub const LONG_NAME: u8 = FileAttributes::READ_ONLY
910 pub fn contains(&self, attr: u8) -> bool { in contains()
914 pub fn new(attr: u8) -> Self { in new()
923 name: [u8; 11],
931 nt_res: u8,
934 crt_time_tenth: u8,
957 ord: u8,
964 dirent_type: u8,
966 checksum: u8,
986 fn new(ord: u8, name_part: &[u16], check_sum: u8) -> Self { in new() argument
1083 let mut v: Vec<u8> = Vec::new(); in flush()
1124 const PADDING: u8 = ' ' as u8;
1175 name[base_len] = '.' as u8; in name_to_string()
1271 fn checksum(&self) -> u8 { in checksum() argument
1297 let mut v: Vec<u8> = Vec::new(); in flush()
1680 pub fn short_name_raw(&self) -> [u8; 11] { in short_name_raw()
1693 s[0] = '/' as u8;
1797 name: [u8; 11],
1799 flags: u8,
1801 basename_len: u8,
1815 const IS_LOSSY: u8 = (1 << 0);
1816 const IS_EXACT_MATCH: u8 = (1 << 1);
1817 const IS_DOT: u8 = (1 << 2);
1818 const IS_DOTDOT: u8 = (1 << 3);
1820 const NAME_FITS: u8 = (1 << 4);
1826 let mut short_name: [u8; 11] = [0x20u8; 11]; in new()
1828 short_name[0] = '.' as u8; in new()
1832 short_name[0] = '.' as u8; in new()
1833 short_name[1] = '.' as u8; in new()
1862 let mut flags: u8 = 0; in new()
1893 fn copy_part(dest: &mut [u8], src: &str) -> (u8, bool, bool) { in copy_part() argument
1900 return (dest_len as u8, false, lossy_conv); in copy_part()
1919 dest[dest_len] = c.to_ascii_uppercase() as u8; in copy_part()
1924 return (dest_len as u8, true, lossy_conv); in copy_part()
1939 pub fn add_name(&mut self, name: &[u8; 11]) { in add_name()
1991 pub fn generate(&self) -> Result<[u8; 11], SystemError> { in generate()
2032 fn build_prefixed_name(&self, num: u32, with_checksum: bool) -> [u8; 11] { in build_prefixed_name()
2033 let mut buf: [u8; 11] = [0x20u8; 11];
2045 buf[prefix_len] = '~' as u8;
2046 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;
2053 fn u16_to_u8_array(x: u16) -> [u8; 4] { in u16_to_u8_array()
2056 .to_ascii_uppercase() as u8;
2059 .to_ascii_uppercase() as u8;
2062 .to_ascii_uppercase() as u8;
2065 .to_ascii_uppercase() as u8;
2098 checksum: u8,
2099 index: u8,
2116 let index: u8 = longname_dentry.ord & 0x1f; in process()
2179 checksum: u8,
2181 idx: u8,
2183 last_index: u8,
2191 pub fn new(name: &str, checksum: u8) -> Self { in new()
2205 let start_index = (name.len() / 13) as u8; in new()
2215 pub fn num_entries(&self) -> u8 { in num_entries() argument
2231 let ord: u8 = n | 0x40; in next()
2257 ShortName([u8; 11]),
2357 let mut v: Vec<u8> = Vec::new(); in get_raw_dir_entry()