pub fn new(size: u64) -> Self {
        let haystack_size: u64 = 65 * 1024;
        let haystack_size = if size < haystack_size {
            size
        } else {
            haystack_size
        };

        Self {
            size,
            state: ArchiveReaderState::ReadEocd {
                buffer: Buffer::with_capacity(Self::DEFAULT_BUFFER_SIZE),
                haystack_size,
            },
        }
    }
/// Create a new archive reader with a specified file size.
///
/// Actual reading of the file is performed by calling
/// [wants_read()](ArchiveReader::wants_read()), [read()](ArchiveReader::read()) and
/// [process()](ArchiveReader::process()) in a loop.
Create a new archive reader with a specified file size.
Create a new archive reader with a specified file size .
pub fn new(size: u64) -> Self {
        let haystack_size: u64 = 65 * 1024;
        let haystack_size = if size < haystack_size {
            size
        } else {
            haystack_size
        };
        Self {
            size,
            state: ArchiveReaderState::ReadEocd {
                buffer: Buffer::with_capacity(Self::DEFAULT_BUFFER_SIZE),
                haystack_size,
            },
        }
    }
pub fn new ( size : u64 ) -> Self { let haystack_size : u64 = 65 * 1024 ; let haystack_size = if size < haystack_size { size } else { haystack_size } ; Self { size , state : ArchiveReaderState :: ReadEocd { buffer : Buffer :: with_capacity ( Self :: DEFAULT_BUFFER_SIZE ) , haystack_size , } , } }
Create a new archive reader with a specified file size.
Create a new archive reader with a specified file size .
size
u64
size
u64