Documentation ¶
Index ¶
- func AlignTo(val, align uint64) uint64
- func AllZeros(bs []byte) bool
- func Assert(condition bool)
- func Bit[T Uint](val T, pos int) T
- func BitCeil(val uint64) uint64
- func Bits[T Uint](val T, hi T, lo T) T
- func Fatal(v any)
- func MustNo(err error)
- func Read[T any](data []byte) (val T)
- func ReadSlice[T any](data []byte, sz int) []T
- func RemoveIf[T any](elems []T, condition func(T) bool) []T
- func RemovePrefix(s, prefix string) (string, bool)
- func SignExtend(val uint64, size int) uint64
- func Write[T any](data []byte, e T)
- type Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemovePrefix ¶
func SignExtend ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.