bytes

package
v0.0.0-...-5fd011b Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvertArray

func InvertArray(a []byte)

InvertArray inverts the byte array, choosing the optimal inversion function.

func InvertArrayLarge

func InvertArrayLarge(a []byte)

InvertArrayLarge inverts the byte array using the optimized xorBytes function from the crypto/cipher package. This is fastest for byte arrays larger than 128 bytes.

func InvertArraySmall

func InvertArraySmall(b []byte)

InvertArraySmall inverts a byte array a word at a time, which is fastest up to 128 bytes.

func InvertByte

func InvertByte(b byte) byte

InvertByte inverts a single byte.

Types

This section is empty.

Jump to

Keyboard shortcuts

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