@Override
  public int getDataSize() {
    return capacity;
  }
Represents a slice of an OffHeapStoredObject. A slice is a subsequence of the bytes stored in an
OffHeapStoredObject.
geode-core/src/main/java/org/apache/geode/internal/offheap/OffHeapStoredObjectSlice.java