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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.