Skip to main content

Randomizer

Trait Randomizer 

Source
pub trait Randomizer {
    // Required method
    fn table(&self) -> &[u8] ;

    // Provided method
    fn apply(&self, buffer: &mut [u8]) { ... }
}
Expand description

A trait for applying a specific CCSDS randomization algorithm.

Required Methods§

Source

fn table(&self) -> &[u8]

Returns the randomization lookup table bytes.

Provided Methods§

Source

fn apply(&self, buffer: &mut [u8])

Applies or removes the randomization sequence in-place on the provided buffer.

Implementors§