@Override
    public void write(SnapshotRecord... records) throws IOException {
      for (SnapshotRecord rec : records) {
        writer.snapshotEntry(rec);
        bytes += rec.getSize();
      }
    }
Writes snapshot data to a {@link SnapshotWriter}. Caller is responsible for invoking
{@link SnapshotWriter#snapshotComplete()}.
geode-core/src/main/java/org/apache/geode/internal/cache/snapshot/RegionSnapshotServiceImpl.java