MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / update

Method update

src/commoncode/hash.py:60–66  ·  view source on GitHub ↗

Update this hash with a ``msg`` bytes string.

(self, msg=None)

Source from the content-addressed store, hash-verified

58 self.update(msg)
59
60 def update(self, msg=None):
61 """
62 Update this hash with a ``msg`` bytes string.
63 """
64 if msg:
65 self.binh.update(msg)
66 self.msg_len += len(msg)
67
68 return hasher
69

Callers 15

__init__Method · 0.95
build_talliesFunction · 0.45
to_dictMethod · 0.45
to_dictMethod · 0.45
compute_path_facetsFunction · 0.45
process_codebaseMethod · 0.45
process_codebaseMethod · 0.45
get_resultsFunction · 0.45
from_headersMethod · 0.45
collect_keysFunction · 0.45
flatten_scanFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected