sync.Pool.Get (method)
56 uses
sync (current package)
pool.go#L127: func (p *Pool) Get() any {
crypto/tls
conn.go#L984: outBufPtr := outBufPool.Get().(*[]byte)
encoding/json
encode.go#L268: if v := encodeStatePool.Get(); v != nil {
scanner.go#L94: scan := scannerPool.Get().(*scanner)
fmt
print.go#L152: p := ppFree.Get().(*pp)
scan.go#L384: s = ssFree.Get().(*ss)
github.com/go-faster/jx
jx.go#L36: return decPool.Get().(*Decoder)
jx.go#L47: return encPool.Get().(*Encoder)
jx.go#L59: return writerPool.Get().(*Writer)
github.com/gotd/td/bin
pool.go#L33: buf := b.pool.Get().(*Buffer)
github.com/gotd/td/internal/crypto
sha256.go#L26: h := sha256Pool.Get().(hash.Hash)
github.com/gotd/td/internal/proto
gzip.go#L34: writer := g.writers.Get().(*gzip.Writer)
gzip.go#L44: reader, ok := g.readers.Get().(*gzip.Reader)
gzip.go#L87: buf := gzipBufPool.Get().(*bytes.Buffer)
github.com/klauspost/compress/flate
stateless.go#L69: bw := bitWriterPool.Get().(*huffmanBitWriter)
go.opentelemetry.io/otel/attribute
encoder.go#L103: buf := d.pool.Get().(*bytes.Buffer)
set.go#L194: srt := sortables.Get().(*Sortable)
set.go#L223: srt := sortables.Get().(*Sortable)
go.uber.org/multierr
error.go#L228: buff := _bufferPool.Get().(*bytes.Buffer)
go.uber.org/zap/internal/pool
pool.go#L52: return p.pool.Get().(T)
internal/poll
splice_linux.go#L211: v := splicePipePool.Get()
io
io.go#L655: bufp := blackHolePool.Get().(*[]byte)
log
log.go#L169: p := bufferPool.Get().(*[]byte)
math/big
nat.go#L642: if v := natPool.Get(); v != nil {
net/http
h2_bundle.go#L1068: return http2dataChunkPools[i].Get().([]byte)
h2_bundle.go#L1629: bufp := http2fhBytes.Get().(*[]byte)
h2_bundle.go#L3128: bp := http2littleBuf.Get().(*[]byte)
h2_bundle.go#L3587: bw := http2bufWriterPool.Get().(*bufio.Writer)
h2_bundle.go#L4914: ch := http2errChanPool.Get().(chan error)
h2_bundle.go#L4915: writeArg := http2writeDataPool.Get().(*http2writeData)
h2_bundle.go#L6103: rws := http2responseWriterStatePool.Get().(*http2responseWriterState)
h2_bundle.go#L6217: errc = http2errChanPool.Get().(chan error)
h2_bundle.go#L6585: sorter := http2sorterPool.Get().(*http2sorter)
h2_bundle.go#L6922: done: http2errChanPool.Get().(chan error),
h2_bundle.go#L8786: if bp, ok := http2bufPool.Get().(*[]byte); ok && len(*bp) >= scratchLen {
h2_bundle.go#L10591: sorter := http2sorterPool.Get().(*http2sorter)
header.go#L174: hs = headerSorterPool.Get().(*headerSorter)
request.go#L1004: if v := textprotoReaderPool.Get(); v != nil {
server.go#L579: bufp := copyBufPool.Get().(*[]byte)
server.go#L829: if v := bufioReaderPool.Get(); v != nil {
server.go#L847: if v := pool.Get(); v != nil {
nhooyr.io/websocket
compress.go#L139: fr, ok := flateReaderPool.Get().(io.Reader)
compress.go#L154: fw, ok := flateWriterPool.Get().(*flate.Writer)
compress.go#L201: sw2, ok := p.Get().(*slidingWindow)
dial.go#L305: br, ok := bufioReaderPool.Get().(*bufio.Reader)
dial.go#L320: bw, ok := bufioWriterPool.Get().(*bufio.Writer)
os
dir_unix.go#L48: f.dirinfo.buf = dirBufPool.Get().(*[]byte)
reflect
value.go#L489: stackArgs = framePool.Get().(unsafe.Pointer)
value.go#L982: methodFrame := methodFramePool.Get().(unsafe.Pointer)
regexp
backtrack.go#L50: b, ok := bitStatePool.Get().(*bitState)
exec.go#L384: m, ok := onePassPool.Get().(*onePassMachine)
regexp.go#L239: m, ok := matchPool[re.mpool].Get().(*machine)
syscall
netlink_linux.go#L84: rbNew := pageBufPool.Get().(*[]byte)
vendor/golang.org/x/net/http2/hpack
hpack.go#L513: buf := bufPool.Get().(*bytes.Buffer)
huffman.go#L22: buf := bufPool.Get().(*bytes.Buffer)
huffman.go#L33: buf := bufPool.Get().(*bytes.Buffer)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |