MCPcopy
hub / github.com/minio/minio-go / Close

Method Close

utils.go:613–623  ·  utils.go::hashWrapper.Close

Close will put the hasher back into the pool.

()

Source from the content-addressed store, hash-verified

611
612// Close will put the hasher back into the pool.
613func (m *hashWrapper) Close() {
614 if m.isMD5 && m.Hash != nil {
615 m.Reset()
616 md5Pool.Put(m.Hash)
617 }
618 if m.isSHA256 && m.Hash != nil {
619 m.Reset()
620 sha256Pool.Put(m.Hash)
621 }
622 m.Hash = nil
623}
624
625const letterBytes = "abcdefghijklmnopqrstuvwxyz01234569"
626const (

Callers 15

FGetObjectMethod · 0.45
executeMethodMethod · 0.45
PutObjectFanOutMethod · 0.45
sum256HexFunction · 0.45
sumMD5Base64Function · 0.45
closeResponseFunction · 0.45
putObjectMethod · 0.45

Calls

no outgoing calls