Documentation ¶
Index ¶
- func GetBit[T constraints.Unsigned, U constraints.Integer](v T, n U) T
- func IsAdmin(message string) bool
- func NewBitBuffer(buf []byte) *bitBuffer
- func NewEmptyBitBuffer(capacity int) *bitBuffer
- func PanicOnErr(err error)
- func PrintTitle(set, challenge int)
- func Remaining(n, m int) int
- func RotateLeft(v uint32, n int) uint32
- func RotateRight(v uint32, n int) uint32
- func SetBit[T constraints.Unsigned, U constraints.Integer](a T, n U, v T) T
- func Xor(buf1, buf2 []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBit ¶
func GetBit[T constraints.Unsigned, U constraints.Integer](v T, n U) T
func IsAdmin ¶
IsAdmin when given a string of the form: key1=value1;key2=value2;... returns true if the first "admin" key is "true".
func NewBitBuffer ¶
func NewBitBuffer(buf []byte) *bitBuffer
func NewEmptyBitBuffer ¶
func NewEmptyBitBuffer(capacity int) *bitBuffer
func PrintTitle ¶
func PrintTitle(set, challenge int)
PrintTitle prints the set and challenge using ansi colors
func RotateLeft ¶
func RotateRight ¶
func SetBit ¶
func SetBit[T constraints.Unsigned, U constraints.Integer](a T, n U, v T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.