Skip to content

Commit 5af1ec4

Browse files
authored
Update README.md
1 parent 0fa6402 commit 5af1ec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Once you import `github.com/CAFxX/bytespool` you have access to these high-level
1212
- `GetBytesSlice(size int) []byte` and `PutBytesSlice(b []byte) bool`
1313
- `GetBytesSlicePtr(size int) *[]byte` and `PutBytesSlicePtr(b *[]byte) bool`
1414

15+
In addition, the following utility APIs are available:
16+
17+
- `Append` is a replacement for `append` that uses the backing pools to avoid allocations when appending to byte slices.
18+
1519
`bytespool` relies on code generation to allow to control the granularity of the backing pools.
1620

1721
The [generated code](https://godoc.org/github.com/CAFxX/bytespool) contains specialized versions of all functions for each of the backing pools. These functions can be used to provide a small speed-up if you statically know the desired sizes at compile-time.

0 commit comments

Comments
 (0)