Benign rust 15,418 installs Download

omnizip-ppmd 0.21.108

“Pure-Rust PPMd text compression codec (PPM with escape, binary arithmetic coder)”

Source contains low-bit mask syntax
SHA-2560359ee67cc40373342abb234ebc71d05dd12813bce20ef8b82171d4c75d98ce7

Evidence

Source contains low-bit mask syntax model.rs · lines 520–527
520:3… for i in (0..=bits).rev() {
521 let bit = ((n >> i) & 1) == 1;
522 enc.encode_bit(32768, bit);
523 }
⋯4 lines
imports super::* model.rs · lines 663–670
663:132… ��────────────────────
664
665#[cfg(test)]
666mod tests {
667 use super::*;
668
669 fn round_trip(data: &[u8], order: usize) {
670 let mut model = Ppmd8Model::default_for(o …
Rust synchronous or async test attribute model.rs · lines 679–695
⋯7 lines
686 }
687
688 #[test]
689 fn round_trip_single_byte() {
690 round_trip(b"A", 4);
⋯5 lines
Builds a large repeated-byte padding sled model.rs · lines 717–725
717:4… #[test]
718 fn round_trip_repeated_byte() {
719 let data = vec![b'A'; 1000];
720 round_trip(&data, 4);
721 }
⋯4 lines
imports super::context_tree::NodeId as PpmNodeId model.rs · lines 351–363
351:27… o external code can address tree nodes.
352pub use super::context_tree::NodeId as PpmNodeId;
353
354#[cfg(test)]
355mod tests {
356 use super::*;
357
358 #[test]
359 fn round_trip_single_byte() {
360 let mut m = PpmModel::new(4);
361 let mut buf = Vec::new();
362 {
363 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.