Documentation ¶
Index ¶
- func CompareByteBits(a []byte, b []byte) int
- func CompareIntBits(a []int, b []int) int
- func CompareStringBits(a string, b string) int
- func FlipBit(a byte, pos uint) byte
- func FlipByteBits(a []byte, num int) []byte
- func FlipIntBits(a []int, num int) []int
- func FlipStringBits(s string, num int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareByteBits ¶
Function that compares two []byte and returns the number of different bits
func CompareIntBits ¶
Function that compares two []int and returns the number of different bits
func CompareStringBits ¶
Function that compares two strings of 1/0s and returns the number of different bits
func FlipByteBits ¶
Function that takes in []byte and num to flip randomly, it flips bits without repeating
func FlipIntBits ¶
Function that takes in []int of 1/0s and num to flip randomly, it flips bits without repeating
func FlipStringBits ¶
Function that takes in a string of 1/0s and num to flip randomly, it flips bits without repeating
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.