Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalizeBits ¶
AnalizeBits count the occurences of bit string of different length
Using a sliding window, bits string up to length = L (4) are counted in O(N), O(L*N) in general
func BitsToByte ¶
BitsToByte convers 8 bits to a byte, treating bits as follow
00010101 = 2^4 + 2^2 + 2+0 =
= bits[3] * 2^4 + bits[5] * 2^2 + bits[7] * 2^0 = byte(21)
func ByteToBits ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.