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.20260803 (c19f78e 2026-08-03) ~/.moon/bin/moon
moonc v0.10.6+80dc50f24 (2026-08-04) ~/.moon/bin/moonc
moonrun 0.1.20260803 (c19f78e 2026-08-03) ~/.moon/bin/moonrun
pub(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?
}MoonBit gzip: provide simple gzip and gunzip algorithms.
Dependencies