slice

package
v0.105.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 0 Imported by: 5

Documentation

Overview

Package slice contains byte slice helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.99.3

func Clean(b []byte)

Clean wipes the data in b by filling it with zeros.

func Copy

func Copy(b []byte) []byte

Copy copies the byte slice into new slice (make/copy).

func CopyReverse

func CopyReverse(b []byte) []byte

CopyReverse returns a new byte slice containing reversed version of the original.

func Reverse

func Reverse(b []byte)

Reverse does in-place reversing of byte slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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