public long getValue() {
    return crc.getValue();
  }
update crc with the all the data reading from given buffer.
@param buffer The buffer to update the crc value.
@throws IOException any I/O error.
ambry-utils/src/main/java/com/github/ambry/utils/CrcInputStream.java