ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
dir: /internal/bufpool/from_owned.go/
package bufpool
// FromOwned constructs a Buffer from a caller-owned byte slice. The resulting
// Buffer does not participate in pooling and will never be returned to the
// internal pool when released.
func FromOwned(buf []byte) Buffer {
return Buffer{buf: buf, pool: unpooled}
}