public long getBytesWritten() {
      return bytes;
    }
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