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

Method Close

utils.go:614–624  ·  utils.go::hashWrapper.Close

Close will put the hasher back into the pool.

()

Source from the content-addressed store, hash-verified

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

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