MCPcopy Create free account
hub / github.com/opencontainers/go-digest / Size

Method Size

algorithm.go:82–88  ·  view source on GitHub ↗

Size returns number of bytes returned by the hash.

()

Source from the content-addressed store, hash-verified

80
81// Size returns number of bytes returned by the hash.
82func (a Algorithm) Size() int {
83 h, ok := algorithms[a]
84 if !ok {
85 return 0
86 }
87 return h.Size()
88}
89
90// Set implemented to allow use of Algorithm as a command line flag.
91func (a *Algorithm) Set(value string) error {

Callers 1

ValidateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected