RapidgzipReader
Mojo struct 🡭
RapidgzipReader
Section titled “RapidgzipReader”@memory_onlystruct RapidgzipReaderCompatibility gzip reader while the rapidgzip dependency is disabled.
The public RapidgzipReader API is preserved for callers and tests, but it
currently delegates to GZFile instead of the external rapidgzip
package. parallelism is accepted for API compatibility and ignored.
Fields
Section titled “Fields”- parallelism (
UInt32)
Implemented traits
Section titled “Implemented traits”AnyType, Deinitable, Movable, Reader
Methods
Section titled “Methods”__init__
Section titled “__init__”fn def __init__(out self, path: String, parallelism: UInt32 = UInt32(0))Args:
- path (
String) - parallelism (
UInt32) - self (
Self)
Returns:
Self
Raises:
fn def __init__(out self, path: Path, parallelism: UInt32 = UInt32(0))Args:
- path (
Path) - parallelism (
UInt32) - self (
Self)
Returns:
Self
Raises:
fn def __init__(out self, *, deinit move: Self)Args:
- move (
Self) - self (
Self)
Returns:
Self
read_to_buffer
Section titled “read_to_buffer”fn def read_to_buffer(mut self, mut buf: Span[UInt8, MutUntrackedOrigin], amt: Int, pos: Int) -> UInt64Args:
- self (
Self) - buf (
Span[UInt8, MutUntrackedOrigin]) - amt (
Int) - pos (
Int)
Returns:
UInt64
Raises: