corrupt

package
v0.0.0-...-4520032 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareByteBits

func CompareByteBits(a []byte, b []byte) int

Function that compares two []byte and returns the number of different bits

func CompareIntBits

func CompareIntBits(a []int, b []int) int

Function that compares two []int and returns the number of different bits

func CompareStringBits

func CompareStringBits(a string, b string) int

Function that compares two strings of 1/0s and returns the number of different bits

func FlipBit

func FlipBit(a byte, pos uint) byte

Function that flips a bit at position pos

func FlipByteBits

func FlipByteBits(a []byte, num int) []byte

Function that takes in []byte and num to flip randomly, it flips bits without repeating

func FlipIntBits

func FlipIntBits(a []int, num int) []int

Function that takes in []int of 1/0s and num to flip randomly, it flips bits without repeating

func FlipStringBits

func FlipStringBits(s string, num int) string

Function that takes in a string of 1/0s and num to flip randomly, it flips bits without repeating

Types

This section is empty.

Jump to

Keyboard shortcuts

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