sync.Pool.Get (method)

69 uses

	sync (current package)
		pool.go#L131: func (p *Pool) Get() any {

	crypto/internal/fips140/drbg
		rand.go#L58: 		drbg = drbgPool.Get().(*Counter)

	crypto/tls
		conn.go#L994: 	outBufPtr := outBufPool.Get().(*[]byte)

	encoding/json
		encode.go#L316: 	if v := encodeStatePool.Get(); v != nil {
		scanner.go#L96: 	scan := scannerPool.Get().(*scanner)

	fmt
		print.go#L152: 	p := ppFree.Get().(*pp)
		scan.go#L384: 	s = ssFree.Get().(*ss)

	github.com/andybalholm/brotli
		backward_references.go#L61: 	sr2, _ := hasherSearchResultPool.Get().(*hasherSearchResult)
		backward_references.go#L65: 	sr, _ := hasherSearchResultPool.Get().(*hasherSearchResult)
		brotli_bit_stream.go#L1015: 	self, _ := blockEncoderPool.Get().(*blockEncoder)
		metablock.go#L35: 	mb, _ := metaBlockPool.Get().(*metaBlockSplit)

	github.com/coder/websocket
		compress.go#L138: 	fr, ok := flateReaderPool.Get().(io.Reader)
		compress.go#L153: 	fw, ok := flateWriterPool.Get().(*flate.Writer)
		compress.go#L202: 	sw2, ok := p.Get().(*slidingWindow)
		dial.go#L322: 	br, ok := bufioReaderPool.Get().(*bufio.Reader)
		dial.go#L337: 	bw, ok := bufioWriterPool.Get().(*bufio.Writer)

	github.com/coder/websocket/internal/bpool
		bpool.go#L17: 	b := bpool.Get()

	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/crypto
		sha256.go#L26: 	h := sha256Pool.Get().(hash.Hash)

	github.com/gotd/td/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#L77: 	bw := bitWriterPool.Get().(*huffmanBitWriter)
		stateless.go#L100: 	dst := tokensPool.Get().(*tokens)

	github.com/klauspost/compress/huff0
		decompress.go#L224: 	buf, ok := d.bufs.Get().(*[4][256]byte)

	github.com/klauspost/compress/zstd
		blockdec.go#L436: 			huff = huffDecoderPool.Get().(*huff0.Scratch)
		blockdec.go#L585: 					seq.fse = fseDecoderPool.Get().(*fseDecoder)
		blockdec.go#L601: 					seq.fse = fseDecoderPool.Get().(*fseDecoder)
		zip.go#L41: 		dec, ok := pool.Get().(*Decoder)
		zip.go#L120: 		enc, ok := pool.Get().(*Encoder)

	github.com/refraction-networking/utls
		conn.go#L989: 	outBufPtr := outBufPool.Get().(*[]byte)

	go.opentelemetry.io/otel/attribute
		encoder.go#L92: 	buf := d.pool.Get().(*bytes.Buffer)

	go.uber.org/multierr
		error.go#L228: 	buff := _bufferPool.Get().(*bytes.Buffer)

	internal/poll
		splice_linux.go#L205: 	v := splicePipePool.Get()

	io
		io.go#L663: 	bufp := blackHolePool.Get().(*[]byte)

	log
		log.go#L169: 	p := bufferPool.Get().(*[]byte)

	math/big
		nat.go#L286: 	s, _ := stackPool.Get().(*stack)

	net/http
		h2_bundle.go#L1217: 		return http2dataChunkPools[0].Get().(*[1 << 10]byte)[:]
		h2_bundle.go#L1219: 		return http2dataChunkPools[1].Get().(*[2 << 10]byte)[:]
		h2_bundle.go#L1221: 		return http2dataChunkPools[2].Get().(*[4 << 10]byte)[:]
		h2_bundle.go#L1223: 		return http2dataChunkPools[3].Get().(*[8 << 10]byte)[:]
		h2_bundle.go#L1225: 		return http2dataChunkPools[4].Get().(*[16 << 10]byte)[:]
		h2_bundle.go#L1799: 	bufp := http2fhBytes.Get().(*[]byte)
		h2_bundle.go#L3363: 	bp := http2littleBuf.Get().(*[]byte)
		h2_bundle.go#L3741: 		bw := http2bufWriterPool.Get().(*bufio.Writer)
		h2_bundle.go#L4209: 		return http2errChanPool.Get().(chan error) // Server used without calling ConfigureServer
		h2_bundle.go#L4211: 	return s.errChanPool.Get().(chan error)
		h2_bundle.go#L5151: 	writeArg := http2writeDataPool.Get().(*http2writeData)
		h2_bundle.go#L6322: 	rws := http2responseWriterStatePool.Get().(*http2responseWriterState)
		h2_bundle.go#L6798: 		sorter := http2sorterPool.Get().(*http2sorter)
		h2_bundle.go#L9168: 	if bp, ok := http2bufPools[index].Get().(*[]byte); ok && len(*bp) >= scratchLen {
		h2_bundle.go#L10452: 	zr := http2gzipPool.Get().(*gzip.Reader)
		h2_bundle.go#L11089: 		sorter := http2sorterPool.Get().(*http2sorter)
		header.go#L168: 	hs = headerSorterPool.Get().(*headerSorter)
		request.go#L1039: 	if v := textprotoReaderPool.Get(); v != nil {
		server.go#L837: 	return copyBufPool.Get().(*[copyBufPoolSize]byte)[:]
		server.go#L858: 	if v := bufioReaderPool.Get(); v != nil {
		server.go#L876: 		if v := pool.Get(); v != nil {
		transport.go#L3132: 	zr := gzipPool.Get().(*gzip.Reader)

	os
		dir_unix.go#L65: 		d.buf = dirBufPool.Get().(*[]byte)

	reflect
		value.go#L479: 			stackArgs = framePool.Get().(unsafe.Pointer)
		value.go#L972: 	methodFrame := methodFramePool.Get().(unsafe.Pointer)

	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)