Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 337 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 337 Bytes

bytepool

Alloc temporary variable sized byte buffers from sync.Pools.

Example:

bs := bytepool.Alloc(134)
defer bytepool.Free(bs)
n,e := myfile.Read(bs)
bs = bs[0:n]

License: MIT

GoDoc

Test code coverage 100%