Class BaseCrcChecksum

    • Constructor Detail

      • BaseCrcChecksum

        public BaseCrcChecksum​(Checksum checksum)
    • Method Detail

      • getChecksum

        public Checksum getChecksum()
      • mark

        public void mark​(int readLimit)
        Description copied from interface: SdkChecksum
        Allows marking a checksum for checksums that support the ability to mark and reset.
        Specified by:
        mark in interface SdkChecksum
        Parameters:
        readLimit - the maximum limit of bytes that can be read before the mark position becomes invalid.
      • update

        public void update​(int b)
        Specified by:
        update in interface Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface Checksum
      • getValue

        public long getValue()
        Specified by:
        getValue in interface Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface Checksum