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, ImplicitlyDestructible, Movable, Reader
Methods
Section titled “Methods”__init__
Section titled “__init__”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
read_to_buffer
Section titled “read_to_buffer”fn read_to_buffer(mut self, mut buf: Span[UInt8, MutExternalOrigin], amt: Int, pos: Int) -> UInt64Args:
- self (
Self) - buf (
Span[UInt8, MutExternalOrigin]) - amt (
Int) - pos (
Int)
Returns:
UInt64
Raises: