Lines Matching refs:u8
23 value: u8,
84 buf: &mut [u8], in read() argument
161 buf: &[u8], in write() argument
328 let zeroes: Vec<u8> = vec![0u8; (range_end - range_start) as usize]; in zero_range()
723 short_name: &[u8; 11], in create_dir_entries()
906 pub const READ_ONLY: u8 = 1 << 0;
907 pub const HIDDEN: u8 = 1 << 1;
908 pub const SYSTEM: u8 = 1 << 2;
909 pub const VOLUME_ID: u8 = 1 << 3;
910 pub const DIRECTORY: u8 = 1 << 4;
911 pub const ARCHIVE: u8 = 1 << 5;
912 pub const LONG_NAME: u8 = FileAttributes::READ_ONLY
919 pub fn contains(&self, attr: u8) -> bool { in contains()
923 pub fn new(attr: u8) -> Self { in new()
932 name: [u8; 11],
940 nt_res: u8,
943 crt_time_tenth: u8,
966 ord: u8,
973 dirent_type: u8,
975 checksum: u8,
995 fn new(ord: u8, name_part: &[u16], check_sum: u8) -> Self { in new() argument
1092 let mut v: Vec<u8> = Vec::new(); in flush()
1133 const PADDING: u8 = ' ' as u8;
1184 name[base_len] = '.' as u8; in name_to_string()
1280 fn checksum(&self) -> u8 { in checksum() argument
1306 let mut v: Vec<u8> = Vec::new(); in flush()
1693 pub fn short_name_raw(&self) -> [u8; 11] { in short_name_raw()
1706 s[0] = '/' as u8;
1810 name: [u8; 11],
1812 flags: u8,
1814 basename_len: u8,
1828 const IS_LOSSY: u8 = (1 << 0);
1829 const IS_EXACT_MATCH: u8 = (1 << 1);
1830 const IS_DOT: u8 = (1 << 2);
1831 const IS_DOTDOT: u8 = (1 << 3);
1833 const NAME_FITS: u8 = (1 << 4);
1839 let mut short_name: [u8; 11] = [0x20u8; 11]; in new()
1841 short_name[0] = '.' as u8; in new()
1845 short_name[0] = '.' as u8; in new()
1846 short_name[1] = '.' as u8; in new()
1875 let mut flags: u8 = 0; in new()
1906 fn copy_part(dest: &mut [u8], src: &str) -> (u8, bool, bool) { in copy_part() argument
1913 return (dest_len as u8, false, lossy_conv); in copy_part()
1932 dest[dest_len] = c.to_ascii_uppercase() as u8; in copy_part()
1937 return (dest_len as u8, true, lossy_conv); in copy_part()
1952 pub fn add_name(&mut self, name: &[u8; 11]) { in add_name()
2004 pub fn generate(&self) -> Result<[u8; 11], SystemError> { in generate()
2045 fn build_prefixed_name(&self, num: u32, with_checksum: bool) -> [u8; 11] { in build_prefixed_name()
2046 let mut buf: [u8; 11] = [0x20u8; 11];
2058 buf[prefix_len] = '~' as u8;
2059 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;
2066 fn u16_to_u8_array(x: u16) -> [u8; 4] { in u16_to_u8_array()
2069 .to_ascii_uppercase() as u8;
2072 .to_ascii_uppercase() as u8;
2075 .to_ascii_uppercase() as u8;
2078 .to_ascii_uppercase() as u8;
2111 checksum: u8,
2112 index: u8,
2129 let index: u8 = longname_dentry.ord & 0x1f; in process()
2192 checksum: u8,
2194 idx: u8,
2196 last_index: u8,
2204 pub fn new(name: &str, checksum: u8) -> Self { in new()
2218 let start_index = (name.len() / 13) as u8; in new()
2228 pub fn num_entries(&self) -> u8 { in num_entries() argument
2244 let ord: u8 = n | 0x40; in next()
2270 ShortName([u8; 11]),
2370 let mut v: Vec<u8> = Vec::new(); in get_raw_dir_entry()