bytesconv

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesSliceToStrings

func BytesSliceToStrings(bs [][]byte) []string

BytesSliceToStrings converts multiple byte slices to strings without allocation. Useful for parameter parsing and header processing.

func BytesToString

func BytesToString(b []byte) string

BytesToString converts byte slice to string without a memory allocation. This is safe as long as the byte slice is not modified after the conversion. WARNING: The original byte slice should not be modified after conversion.

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice without a memory allocation. This is safe for read-only operations on the byte slice. WARNING: The returned byte slice should not be modified.

func StringsToBytes

func StringsToBytes(ss []string) [][]byte

StringsToBytes converts multiple strings to byte slices without allocation. Useful for batch operations like header processing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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