Skip to content

Variable sized pools of bytes using sync.Pools underneath.

License

Notifications You must be signed in to change notification settings

taruti/bytepool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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%

About

Variable sized pools of bytes using sync.Pools underneath.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages