package
Version:
v0.0.0-...-f5c3557
Opens a new window with list of versions in this module.
Published: May 2, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package bytec implements some bytes utilities.
"bytec" is pronounced "bytes".
Dup makes a copy of the given byte slice
MultiReader returns a Reader that's the logical concatenation of the
provided input byte slice.
Put returns the slice to the pool and sets S to nil.
S is a []byte. Any existing []byte may be cast to an S and added to the pool.
Make gets an appropriately-sized S from the pool. When you're done, be sure
to call Put() on the S to add it back to the pool.
When you request a buffer, the only guarauntee is that you will get a []byte
_at least_ as large as the requested size, though likely larger.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.