Refactor record batch encoding
Refactor record batch encoding

DataDog/sarama,remerge/sarama,Shopify/sarama,DataDog/sarama,Shopify/sarama,VividCortex/sarama,vrischmann/sarama,remerge/sarama,VividCortex/sarama,mailgun/sarama,mailgun/sarama,vrischmann/sarama