@Override
  public void readFully(byte @NotNull [] b) throws IOException {
    dis.readFully(b);
    count += b.length;
  }
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