MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newBuffer

Function newBuffer

logger/buffer.go:21–24  ·  view source on GitHub ↗

newBuffer creates a new buffer from the pool.

()

Source from the content-addressed store, hash-verified

19
20// newBuffer creates a new buffer from the pool.
21func newBuffer() *buffer {
22 //nolint:forcetypeassert
23 return bufPool.Get().(*buffer)
24}
25
26// Write writes data to the buffer.
27func (b *buffer) Write(p []byte) (n int, err error) {

Callers 4

appendJSONMarshalMethod · 0.70
HandleMethod · 0.70
writeErrorMethod · 0.70
formatMethod · 0.70

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected