zeroconv

package module
v0.0.0-...-40f3e5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

zeroconv

Utilities for converting between various data types.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(blob []byte) (str string)

BytesToString converts a byte slice into a string without incurring the overhead of []byte(string) allocations.

func LengthPrefixedBytesToString

func LengthPrefixedBytesToString(blob []byte) (str string, err error)

LengthPrefixedBytesToString takes a byte slice whose first elements are the Uvarint encoded length of the string to be converted.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL