@Override
  public void readFully(byte @NotNull [] b, int off, int len) throws IOException {
    dis.readFully(b, off, len);
    count += len;
  }
A data input stream that counts the bytes it plans on reading.


@since GemFire prPersistSprint2
geode-core/src/main/java/org/apache/geode/internal/cache/CountingDataInputStream.java