An open API service indexing awesome lists of open source software.

https://github.com/lithdew/bytesutil

Utilities for reducing memory allocations in Go w/ 100% unit test coverage.
https://github.com/lithdew/bytesutil

golang

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# bytesutil

[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](LICENSE)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/lithdew/bytesutil)
[![Discord Chat](https://img.shields.io/discord/697002823123992617)](https://discord.gg/HZEbkeQ)

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.