Documentation ¶
Index ¶
- func BitShuffle(data []byte, rng cipher.Stream, rev bool) error
- func BitSwap(data []byte, i, j uint64) error
- func BytesToUInt16(data []byte, startIDx, endIDx uint64) (uint16, error)
- func CompressBytes(src, dst []byte, inputBlockBits, outputBlockBits uint64, ...) error
- func CompressedNBytes(expandedLen, inputBlockBits, outputBlockBits uint64) uint64
- func CompressedNBytes_floor(expandedLen, inputBlockBits, outputBlockBits uint64) uint64
- func ExpandBytes(src, dst []byte, inputBlockBits, outputBlockBits uint64, ...) error
- func ExpandedNBytes(srcLen, inputBlockBits, outputBlockBits uint64) uint64
- func InvertTable(vals []uint64) map[uint64]uint64
- func PrintBits(data []byte)
- func SampleBiasedString(numBits uint64, bias float64, stream cipher.Stream) (uint64, error)
- func SampleBiasedStrings(numBits, n uint64, bias float64, stream cipher.Stream) ([]uint64, error)
- func UniformSample(a, b uint64, stream cipher.Stream) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressBytes ¶
func CompressedNBytes ¶
func CompressedNBytes_floor ¶
func ExpandBytes ¶
func ExpandedNBytes ¶
func InvertTable ¶
func SampleBiasedString ¶
Bias of 0.8 means 80% probability of outputting 0
func SampleBiasedStrings ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.