Sha256: 0d0428a28bbb23548d858d5da8eece31c1f6d2cbde1e772480ccf4b2d33b3f2d
Contents?: true
Size: 401 Bytes
Versions: 9
Compression:
Stored size: 401 Bytes
Contents
require "kafka" ready "message serialization" do before do message = Kafka::Protocol::Message.new( value: "hello", key: "world", ) @io = StringIO.new encoder = Kafka::Protocol::Encoder.new(@io) message.encode(encoder) @decoder = Kafka::Protocol::Decoder.new(@io) end go "decoding" do @io.rewind Kafka::Protocol::Message.decode(@decoder) end end
Version data entries
9 entries across 9 versions & 1 rubygems