lib/ruby/truffle/pr-zlib/lib/pr/rbzlib.rb
# Flushes all pending output if necessary, closes the compressed file
# and deallocates all the (de)compression state.
#
Flushes all pending output if necessary, closes the compressed file
and deallocates all the (de)compression state.
Flushes all pending output if necessary closes the compressed file and deallocates all the ( de ) compression state .
def gzclose(file)
      s = file
      if s.nil?
         return Z_STREAM_ERROR
      end
      if s.mode == 'w'
         err = do_flush(file, Z_FINISH)
         if err != Z_OK
            return destroy(f)
         end
         putLong(s.file, s.crc)
         putLong(s.file, s.in & 0xffffffff)
      end
      return destroy(file)
   end
def gzclose ( file ) s = file if s . nil? return Z_STREAM_ERROR end if s . mode == 'w' err = do_flush ( file , Z_FINISH ) if err != Z_OK return destroy ( f ) end putLong ( s . file , s . crc ) putLong ( s . file , s . in & 0xffffffff ) end return destroy ( file ) end
Flushes all pending output if necessary, closes the compressed file
and deallocates all the (de)compression state.
Flushes all pending output if necessary closes the compressed file and deallocates all the ( de ) compression state .
file
<not_specific>