MCPcopy
hub / github.com/pquerna/ffjson / Pool

Function Pool

ffjson/pool.go:31–33  ·  view source on GitHub ↗

Send a buffer to the Pool to reuse for other instances. On servers where you have a lot of concurrent encoding going on, you can hand back the byte buffer you get marshalling once you are done using it. You may no longer utilize the content of the buffer, since it may be used by other goroutines.

(b []byte)

Source from the content-addressed store, hash-verified

29// You may no longer utilize the content of the buffer, since it may be used
30// by other goroutines.
31func Pool(b []byte) {
32 fflib.Pool(b)
33}

Callers 1

MarshalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…