Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DigestBuffers = &sync.Pool{ New: func() interface{} { const bufferCapacity = 32 b := make([]byte, 0, bufferCapacity) return bytes.NewBuffer(b) }, }
DigestBuffers is a sync pool of buffers of capacity 32.
View Source
var Hashers = &sync.Pool{ New: func() interface{} { hasher, err := blake2b.New256(nil) if err != nil { panic("cannot create Blake2b-256 hasher: " + err.Error()) } return hasher }, }
Hashers is a sync pool of blake2b 256 hashers.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.