yep steam classes are faster...

This commit is contained in:
2024-11-14 00:57:29 +11:00
parent 451deb6aa3
commit da14fa8fd0
7 changed files with 54 additions and 38 deletions

View File

@ -18,7 +18,7 @@ struct GZipReader: ~Copyable {
inflateEnd(&zstream)
}
mutating func read(inStream stream: inout any InputStream) throws(GZipError) -> Data {
mutating func read(inStream stream: InputStream) throws(GZipError) -> Data {
// Initialise zlib if this is the first time we're called
// otherwise reset the stream in anticipation of reading the next concatenated stream
var zerr = if self.zstream.state == nil {