Sha256: f58ece1a2d34df08cc39c20491e79c94b0ed54c0d8d27e953636cf3e6e76977f
Contents?: true
Size: 292 Bytes
Versions: 19
Compression:
Stored size: 292 Bytes
Contents
module Kafka class SnappyCodec def initialize require "snappy" end def codec_id 2 end def compress(data) Snappy.deflate(data) end def decompress(data) buffer = StringIO.new(data) Snappy::Reader.new(buffer).read end end end
Version data entries
19 entries across 19 versions & 1 rubygems