MCPcopy
hub / github.com/perkeep/perkeep / otherDigest

Struct otherDigest

pkg/blob/ref.go:560–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558const maxOtherDigestLen = 128
559
560type otherDigest struct {
561 name string
562 sum [maxOtherDigestLen]byte
563 sumLen int // bytes in sum that are valid
564 odd bool // odd number of hex digits in input
565}
566
567func (d otherDigest) digestName() string { return d.name }
568func (d otherDigest) bytes() []byte { return d.sum[:d.sumLen] }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected