 //
 //  Data+Gzip.swift
 //
-//  Version 3.1.5
 
 /*
  The MIT License (MIT)
  
- © 2014-2017 1024jp <wolfrosch.com>
+ © 2014-2019 1024jp <wolfrosch.com>
  
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal

        
        return stream
    }
}

private struct DataSize {
    static let chunk = 2 ^ 14
    static let stream = MemoryLayout<z_stream>.size
    

            throw GzipError(code: status, msg: stream.msg)
        }
        
        var data = Data(capacity: contiguousData.count * 2)
        
        repeat {
            if Int(stream.total_out) >= data.count {
                data.count += contiguousData.count / 2
            }
            
            data.withUnsafeMutableBytes { (bytes: UnsafeMutablePointer<Bytef>) in
