bytesconv

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUint

func AppendUint(dst []byte, n uint) []byte

AppendUint appends n to dst and returns the extended dst

func B2S

func B2S(b []byte) string

B2S converts byte slice to a string without memory allocation See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ

Note that it may break if string and/or slice header will change in the future go versions

func S2B

func S2B(s string) (b []byte)

S2B converts string to a byte slice without memory allocation

Note that it may break if string and/or slice header will change in the future go versions

Types

This section is empty.

Jump to

Keyboard shortcuts

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