uint32_t CompactProtocolWriter::serializedSizeZCBinary(IOBuf const& v) const {
  size_t size = v.computeChainDataLength();
  return (size > folly::IOBufQueue::kMaxPackCopy)
      ? serializedSizeI32() // too big to pack: size only
      : size + serializedSizeI32(); // size + packed data
}
uint32_t CompactProtocolWriter::serializedSizeZCBinary(IOBuf const& v) const {
  size_t size = v.computeChainDataLength();
  return (size > folly::IOBufQueue::kMaxPackCopy)
      ? serializedSizeI32()  
      : size + serializedSizeI32();  
}