constructor()

in source/checksum/lib/algorithm/base.js [34:43]


  constructor(libName, params = {}) {
    super(libName, params);
    this.$algorithm = params.Algorithm || undefined;
    this.$byteStart = Number.parseInt(params.NextByteStart || 0, 10);
    this.$chunkSize = Number.parseInt(params.ChunkSize || DEFAULT_CHUNKSIZE, 10);
    this.$intermediateHash = params.IntermediateHash || undefined;
    this.$computed = params.Computed || undefined;
    this.$expected = params.Expected || undefined;
    this.$bytesRead = 0;
  }