bytes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 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/subtle 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