slices

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(slices [][]byte) []byte

Concat concatenates multiple []byte into one []byte with efficient one-time allocation.

func EnsureByteSliceSize

func EnsureByteSliceSize(b []byte, length int) []byte

EnsureByteSliceSize returns a copy of input bytes with given length trimming or left-padding with zero bytes accordingly

Types

This section is empty.

Jump to

Keyboard shortcuts

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