Sha256: cb2f62d1c9d7be225bf7bd4e5e3ad5439dadd37d55c1938dfe6ab77387dcd5f8
Contents?: true
Size: 542 Bytes
Versions: 5
Compression:
Stored size: 542 Bytes
Contents
# encoding: UTF-8 module Yajl module Gzip # === Yajl::GzipStreamReader # # This is a wrapper around Zlib::GzipReader to allow it's #read method to adhere # to the IO spec, allowing for two parameters (length, and buffer) class StreamReader < ::Zlib::GzipReader def read(len=nil, buffer=nil) unless buffer.nil? buffer.replace super(len) return buffer end super(len) end def self.parse(io) Yajl::Stream.parse(new(io)) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems