struct Komihash::Stream

Overview

Context structure for the streamed "komihash" hashing.

Defined in:

komihash.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, use_seed : UInt64 = 0_u64) #

Initialize stream with zeros.


[View source]

Instance Method Detail

def final : UInt64 #

Finalize the streamed "komihash" hashing session.


[View source]
def reset(use_seed : UInt64 = 0_u64) : Nil #

Reset stream.


[View source]
def update(data : Bytes) : Nil #

Update the streamed hashing state with a new input data.


[View source]
def update(data) : Nil #

Update the streamed hashing state with a new input data.


[View source]