Class: IsccLib::DataHasher
- Inherits:
-
Object
- Object
- IsccLib::DataHasher
- Defined in:
- lib/iscc_lib.rb
Overview
Streaming Data-Code generator (reopens native class).
Incrementally processes data with content-defined chunking and MinHash to produce results identical to gen_data_code_v0.
Instance Method Summary collapse
-
#finalize(bits: 64) ⇒ DataCodeResult
Consume the hasher and produce a Data-Code result.
-
#update(data) ⇒ self
Push binary data into the hasher.
Instance Method Details
#finalize(bits: 64) ⇒ DataCodeResult
Consume the hasher and produce a Data-Code result.
202 203 204 |
# File 'lib/iscc_lib.rb', line 202 def finalize(bits: 64) DataCodeResult[_finalize(bits)] end |
#update(data) ⇒ self
Push binary data into the hasher.
192 193 194 195 |
# File 'lib/iscc_lib.rb', line 192 def update(data) _update(data) self end |