Categorygithub.com/lithdew/bytesutil
repositorypackage
0.0.0-20200409052507-d98389230a59
Repository: https://github.com/lithdew/bytesutil.git
Documentation: pkg.go.dev

# README

bytesutil

MIT License go.dev reference Discord Chat

Utilities for reducing memory allocations in Go w/ 100% unit test coverage.

  • Zero-allocation conversion between string and byte slice.
  • Zero-allocation signed/unsigned variable integer encoding/decoding.
  • Zero-allocation signed/unsigned 64-bit/32-bit/16-bit integer encoding/decoding.
  • Extend slice to a sufficient length.