zlib-based homecooked gzip reader for significantly faster decompression times

This commit is contained in:
2024-11-12 09:37:46 +11:00
parent cf5e1a3f35
commit 089a7dcfe1
7 changed files with 256 additions and 14 deletions

View File

@ -5,10 +5,9 @@
import Foundation
public protocol InputStream: Stream, IteratorProtocol {
associatedtype Element = UInt8
public protocol InputStream: Stream, IteratorProtocol where Element == UInt8 {
mutating func read(_ count: Int) throws(StreamError) -> Data
mutating func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) throws(StreamError) -> Int
}
public extension InputStream {