public void setArraySizeInBytes(Object o, Integer size) {
        map.put(o, size);
    }
The ObjectSerializationCache stores sizes and values computed during the
first serialization pass.  This avoids recalculating and recomputing the same
values during the second pass.

It is intended to be used as part of a two-pass serialization process like:
ObjectSerializationCache cache = new ObjectSerializationCache();
message.size(version, cache);
message.write(version, cache);
clients/src/main/java/org/apache/kafka/common/protocol/ObjectSerializationCache.java