Searched refs:encode_table (Results 1 – 11 of 11) sorted by relevance
/aosp_15_r20/external/rust/android-crates-io/crates/base64/src/engine/general_purpose/ |
D | mod.rs | 25 encode_table: [u8; 64], field 37 encode_table: encode_table(alphabet), in new() 78 output_chunk[0] = self.encode_table[((input_u64 >> 58) & LOW_SIX_BITS) as usize]; in internal_encode() 79 output_chunk[1] = self.encode_table[((input_u64 >> 52) & LOW_SIX_BITS) as usize]; in internal_encode() 80 output_chunk[2] = self.encode_table[((input_u64 >> 46) & LOW_SIX_BITS) as usize]; in internal_encode() 81 output_chunk[3] = self.encode_table[((input_u64 >> 40) & LOW_SIX_BITS) as usize]; in internal_encode() 82 output_chunk[4] = self.encode_table[((input_u64 >> 34) & LOW_SIX_BITS) as usize]; in internal_encode() 83 output_chunk[5] = self.encode_table[((input_u64 >> 28) & LOW_SIX_BITS) as usize]; in internal_encode() 84 output_chunk[6] = self.encode_table[((input_u64 >> 22) & LOW_SIX_BITS) as usize]; in internal_encode() 85 output_chunk[7] = self.encode_table[((input_u64 >> 16) & LOW_SIX_BITS) as usize]; in internal_encode() [all …]
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/base64-0.13.1/src/ |
H A D | encode.rs | 143 let b64_bytes_written = encode_to_slice(input, output, config.char_set.encode_table()); in encode_with_padding() 167 pub fn encode_to_slice(input: &[u8], output: &mut [u8], encode_table: &[u8; 64]) -> usize { in encode_to_slice() 195 output_chunk[0] = encode_table[((input_u64 >> 58) & LOW_SIX_BITS) as usize]; 196 output_chunk[1] = encode_table[((input_u64 >> 52) & LOW_SIX_BITS) as usize]; 197 output_chunk[2] = encode_table[((input_u64 >> 46) & LOW_SIX_BITS) as usize]; 198 output_chunk[3] = encode_table[((input_u64 >> 40) & LOW_SIX_BITS) as usize]; 199 output_chunk[4] = encode_table[((input_u64 >> 34) & LOW_SIX_BITS) as usize]; 200 output_chunk[5] = encode_table[((input_u64 >> 28) & LOW_SIX_BITS) as usize]; 201 output_chunk[6] = encode_table[((input_u64 >> 22) & LOW_SIX_BITS) as usize]; 202 output_chunk[7] = encode_table[((input_u64 >> 16) & LOW_SIX_BITS) as usize]; [all …]
|
H A D | chunked_encoder.rs | 37 let encode_table = self.config.char_set.encode_table(); in encode() localVariable 47 let mut b64_bytes_written = encode_to_slice(chunk, &mut encode_buf, encode_table); in encode()
|
H A D | decode.rs | 823 for &s1 in STANDARD.char_set.encode_table().iter() { in detect_invalid_last_symbol_every_possible_three_symbols() 825 for &s2 in STANDARD.char_set.encode_table().iter() { in detect_invalid_last_symbol_every_possible_three_symbols() 827 for &s3 in STANDARD.char_set.encode_table().iter() { in detect_invalid_last_symbol_every_possible_three_symbols() 861 for &s1 in STANDARD.char_set.encode_table().iter() { in detect_invalid_last_symbol_every_possible_two_symbols() 863 for &s2 in STANDARD.char_set.encode_table().iter() { in detect_invalid_last_symbol_every_possible_two_symbols()
|
H A D | lib.rs | 128 fn encode_table(self) -> &'static [u8; 64] { in encode_table() method
|
/aosp_15_r20/external/rust/android-crates-io/crates/base64/src/engine/ |
D | naive.rs | 4 general_purpose::{self, decode_table, encode_table}, 13 encode_table: [u8; 64], field 24 encode_table: encode_table(alphabet), in new() 66 output[output_index] = self.encode_table[chunk_int.shr(18) as usize]; in internal_encode() 68 self.encode_table[chunk_int.shr(12_u8).bitand(LOW_SIX_BITS) as usize]; in internal_encode() 70 self.encode_table[chunk_int.shr(6_u8).bitand(LOW_SIX_BITS) as usize]; in internal_encode() 72 self.encode_table[chunk_int.bitand(LOW_SIX_BITS) as usize]; in internal_encode() 84 output[output_index] = self.encode_table[chunk[0].shr(2) as usize]; in internal_encode() 87 self.encode_table[(chunk[0].shl(4_u8).bitor(chunk[1].shr(4_u8)) as u32) in internal_encode() 91 self.encode_table[(chunk[1].shl(2_u8) as u32).bitand(LOW_SIX_BITS) as usize]; in internal_encode() [all …]
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/base64-0.13.1/src/write/ |
H A D | encoder.rs | 292 self.config.char_set.encode_table(), in write() 341 self.config.char_set.encode_table(), in write()
|
/aosp_15_r20/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | json.lua | 37 local function encode_table(val, stack) function 95 [ "table" ] = encode_table,
|
/aosp_15_r20/external/rust/android-crates-io/crates/toml_edit/src/ |
D | encode.rs | 148 pub(crate) fn encode_table( in encode_table() function 194 Value::InlineTable(table) => encode_table(table, buf, input, default_decor), in encode_value()
|
D | inline_table.rs | 435 crate::encode::encode_table(self, f, None, ("", "")) in fmt()
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/base64-0.13.1/src/read/ |
H A D | decoder_tests.rs | 214 for &s1 in config.char_set.encode_table().iter() { in reports_invalid_last_symbol_correctly()
|