private byte[] serializeV1(MixedFormatEnumeratorOffset position) throws IOException {
    DataOutputSerializer out = SERIALIZER_CACHE.get();
    out.writeBoolean(position.changeSnapshotId() != null);
    if (position.changeSnapshotId() != null) {
      out.writeLong(position.changeSnapshotId());
    }
    out.writeBoolean(position.snapshotTimestampMs() != null);
    if (position.snapshotTimestampMs() != null) {
      out.writeLong(position.snapshotTimestampMs());
    }
    byte[] result = out.getCopyOfBuffer();
    out.clear();
    return result;
  }
Serializer that serializes and deserializes mixed-format enumerator {@link
MixedFormatEnumeratorOffset}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/read/hybrid/enumerator/MixedFormatEnumeratorOffsetSerializer.java