MoonBit gzip: provide simple gzip and gunzip algorithms.
Dependencies
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.$ moon version --all
moon 0.1.20260309 (f21b520 2026-03-09) ~/.moon/bin/moon
moonc v0.8.3+cd28f524e (2026-03-09) ~/.moon/bin/moonc
moonrun 0.1.20260309 (f21b520 2026-03-09) ~/.moon/bin/moonrun
moon-pilot 0.0.1-df92511 (2026-03-09) ~/.moon/bin/moon-pilotpub(all) type CompressionLevel Intimpl Compare for CompressionLevelimpl Eq for CompressionLevelimpl Show for CompressionLevel#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn CompressionLevel::inner(self : CompressionLevel) -> Intpub(all) struct Header {
comment : String
extra : Array[Byte]
mod_time : PlainDateTime?
name : String
os : Byte
}impl ReadCloser for Readerpub(all) struct Writer {
header : Header
w : &Writer
level : CompressionLevel
wrote_header : Bool
closed : Bool
buf : Array[Byte]
compressor : &WriteCloser
digest : UInt
size : UInt
err : IOError?
}Install
Download zipMoonBit gzip: provide simple gzip and gunzip algorithms.
Dependencies