Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
decodes ordinal number numOfSetBits - number of bits that have to be 1 ordinal - number that is being decoded. ordinal goes from 0 to (n over numOfSetBits)-1
func DecodeToPositions ¶
decodes ordinal number to array of position of set bits from rightmost to leftmost set bit. e.g. 1011 will return 0 1 3 numOfSetBits - number of bits that have to be 1 ordinal - number that is being decoded. ordinal goes from 0 to (n over numOfSetBits)-1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.