Update single byte decoder.

This commit is contained in:
Mauro D
2022-10-13 14:59:32 +00:00
parent 1bf8860da8
commit b653d6fa3d
+5
View File
@@ -13,6 +13,11 @@ fn single_byte_decoder(table: &[char], bytes: &[u8]) -> String {
let mut result = String::with_capacity(bytes.len() * 2);
for byte in bytes {
#[cfg(feature = "ludicrous_mode")]
unsafe {
result.push(*table.get_unchecked(*byte as usize));
}
#[cfg(not(feature = "ludicrous_mode"))]
result.push(table[*byte as usize]);
}