File: buffer_nopool.go

package info (click to toggle)
golang-github-pquerna-ffjson 0.0~git20181028.e517b90-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 640 kB
  • sloc: makefile: 37; sh: 6
file content (11 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// +build !go1.3

package v1

// Stub version of buffer_pool.go for Go 1.2, which doesn't have sync.Pool.

func Pool(b []byte) {}

func makeSlice(n int) []byte {
	return make([]byte, n)
}