MCPcopy Create free account
hub / github.com/cogentcore/core / _hash

Function _hash

texteditor/difflib/bytes/bytes.go:60–62  ·  view source on GitHub ↗
(line []byte)

Source from the content-addressed store, hash-verified

58type lineHash uint32
59
60func _hash(line []byte) lineHash {
61 return lineHash(adler32.Checksum(line))
62}
63
64// B2J is essentially a map from lines to line numbers, so that later it can
65// be made a bit cleverer than the standard map in that it will not need to

Callers 2

_findMethod · 0.85
QuickRatioMethod · 0.85

Calls 1

lineHashTypeAlias · 0.85

Tested by

no test coverage detected