/// Generate all the bytes for this file in memory.
/// For a given FileData, this function is deterministic.
Generate all the bytes for this file in memory.
For a given FileData, this function is deterministic.
Generate all the bytes for this file in memory . For a given FileData this function is deterministic .
pub fn generate_bytes(&mut self) -> Vec<u8> {
        let size_bytes = match self.uncompressed_size {
            UncompressedSize::Exact(size_bytes) => size_bytes,
            UncompressedSize::InRange(min, max) => self.rng.gen_range(min, max),
        };
        match self.compressibility {
            Compressibility::Compressible => {
                generate_compressible_data_bytes(&mut self.rng, size_bytes)
            }
            Compressibility::Uncompressible => {
                generate_uncompressible_data_bytes(&mut self.rng, size_bytes)
            }
        }
    }
pub fn generate_bytes ( & mut self ) -> Vec < u8 > { let size_bytes = match self . uncompressed_size { UncompressedSize :: Exact ( size_bytes ) => size_bytes , UncompressedSize :: InRange ( min , max ) => self . rng . gen_range ( min , max ) , } ; match self . compressibility { Compressibility :: Compressible => { generate_compressible_data_bytes ( & mut self . rng , size_bytes ) } Compressibility :: Uncompressible => { generate_uncompressible_data_bytes ( & mut self . rng , size_bytes ) } } }
Generate all the bytes for this file in memory.
Generate all the bytes for this file in memory .
&mut self