mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
zlib-based homecooked gzip reader for significantly faster decompression times
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user