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, ImplicitlyDestructible, Movable, Reader

fn __init__(out self, path: String, parallelism: UInt32 = UInt32(0))

Args:

  • path (String)
  • parallelism (UInt32)
  • self (Self)

Returns:

Self

Raises:

fn __init__(out self, path: Path, parallelism: UInt32 = UInt32(0))

Args:

  • path (Path)
  • parallelism (UInt32)
  • self (Self)

Returns:

Self

Raises:

fn __init__(out self, *, deinit take: Self)

Args:

  • take (Self)
  • self (Self)

Returns:

Self

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

Args:

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

Returns:

UInt64

Raises: