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)
| 29 | // You may no longer utilize the content of the buffer, since it may be used |
| 30 | // by other goroutines. |
| 31 | func Pool(b []byte) { |
| 32 | fflib.Pool(b) |
| 33 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…