code: public void writeTable(VoltTable table) throws IOException {
          int len = table.getSerializedSize();
          growIfNeeded(len);
          table.flattenToBuffer(buffer.b());
      }
docs: Write a table using it's ByteBuffer serialization code.