HashBytesState class

The HashBytesState class represents the state of a hashing process that operates on a byte array.

It implements the HashState interface, providing a way to manage the state of a byte-based hashing operation.

Parameters:

  • data: A List<int> that holds the data to be hashed.
  • pos: An integer representing the current position or progress in processing the data.

This class is useful for tracking the state of a hash computation, enabling efficient incremental hashing where data is processed in chunks or sections, and the pos field keeps track of the current position within the data buffer.

Implemented types

Constructors

HashBytesState({required List<int> data, required int pos})

Properties

data List<int>
final
hashCode int
The hash code for this object.
no setterinherited
pos int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited