@Override
    public void toData(DataOutput out,
        SerializationContext context) throws IOException {
      InternalDataSerializer.writeByteArray(key, out);
      InternalDataSerializer.writeByteArray(value, out);
    }
Returns the size in bytes of the serialized key and value.

@return the record size
geode-core/src/main/java/org/apache/geode/internal/cache/snapshot/SnapshotPacket.java