mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Add a placeholder std/zlib package
This commit is contained in:
1 parent
855ec85e29
commit
dd3f0b9ed4
9 files changed
+876
-7
No files matched your search
@@ -14,6 +14,15 @@
|
||||
|
||||
packageid "flte"
|
||||
|
||||
// TODO: rename "struct flate_decoder" to just "struct decoder", to avoid
|
||||
// stutter in the fully qualified C name such as "wuffs_flate__flate_decoder".
|
||||
//
|
||||
// TODO: delete std/flate/decode_zlib.wuffs, and update std/flate/README.md.
|
||||
//
|
||||
// Would we then need to somehow share code between test/c/std/{flate,gzip}.c?
|
||||
|
||||
// TODO: rename flate to deflate, since that's what RFC 1951 calls it.
|
||||
|
||||
pub error "bad Huffman code (over-subscribed)"
|
||||
pub error "bad Huffman code (under-subscribed)"
|
||||
pub error "bad Huffman code length count"
|
||||
|
||||
@@ -18,13 +18,6 @@ pub error "invalid zlib parity check"
|
||||
|
||||
pub error "TODO: unsupported zlib preset dictionary"
|
||||
|
||||
// TODO: move this file from std/flate to std/zlib? In doing so, we could
|
||||
// rename both of "struct flate_decoder" and "struct zlib_decoder" to just
|
||||
// "struct decoder", to avoid stutter in the fully qualified C name such as
|
||||
// "wuffs_flate__flate_decoder".
|
||||
//
|
||||
// Would we then need to somehow share code between test/c/std/{flate,gzip}.c?
|
||||
|
||||
pub struct zlib_decoder?(
|
||||
flate flate_decoder,
|
||||
adler adler32,
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Zlib
|
||||
|
||||
zlib ([RFC 1950](https://www.ietf.org/rfc/rfc1950.txt)) is a thin wrapper
|
||||
around raw deflate (RFC 1951). Zlib is similar to gzip (RFC 1952), but with a
|
||||
different wire format and checksum algorithm.
|
||||
|
||||
zlib is used by the ELF executable and PNG image file formats.
|
||||
|
||||
TODO: a worked example.
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
packageid "zlib"
|
||||
|
||||
pub struct decoder?(
|
||||
)
|
||||
Reference in new issue
Block a user