Get returns an empty byte buffer from the pool. Got byte buffer may be returned to the pool via Put call. This reduces the number of memory allocations required for byte buffer management.
()
| 40 | // This reduces the number of memory allocations required for byte buffer |
| 41 | // management. |
| 42 | func Get() *ByteBuffer { return defaultPool.Get() } |
| 43 | |
| 44 | // Get returns new byte buffer with zero length. |
| 45 | // |