Debian Codegraph @

encrypted/pool.go

raw symbols SCIP
1 package encryptedscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/
2
3 import "syncscip-go gomod github.com/golang/go/src go1.25.0 sync/"
4
5 var bytePoolscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/bytePool. = syncscip-go gomod github.com/golang/go/src go1.25.0 sync/.Poolscip-go gomod github.com/golang/go/src go1.25.0 sync/Pool#{Newscip-go gomod github.com/golang/go/src go1.25.0 sync/Pool#New.: func() interface{} { return []byte(nil) }}
6
7 func allocBytesscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/allocBytes().(size int) []byte {
8 bs := bytePoolscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/bytePool..Getscip-go gomod github.com/golang/go/src go1.25.0 sync/Pool#Get().().([]byte)
9 if cap(bs) < size {
10 bs = make([]byte, size)
11 }
12 return bs[:size]
13 }
14
15 func freeBytesscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/freeBytes().(bs []byte) {
16 bytePoolscip-go gomod github.com/Arceliar/ironwood . `github.com/Arceliar/ironwood/encrypted`/bytePool..Putscip-go gomod github.com/golang/go/src go1.25.0 sync/Pool#Put().(bs[:0]) //nolint:staticcheck
17 }