Skip to content

RapidgzipReader

Mojo struct 🡭

@memory_only
struct RapidgzipReader

Compatibility 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.

  • parallelism (UInt32)

AnyType, Deinitable, Movable, Reader

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

fn def read_to_buffer(mut self, mut buf: Span[UInt8, MutUntrackedOrigin], amt: Int, pos: Int) -> UInt64

Args:

  • self (Self)
  • buf (Span[UInt8, MutUntrackedOrigin])
  • amt (Int)
  • pos (Int)

Returns:

UInt64

Raises: