Documentation ¶
Index ¶
- func AddPadding(b []byte) []byte
- func AppendUint32Bytes(dst []byte, n uint32) []byte
- func AssertEqual(tb testing.TB, expected, actual interface{}, description ...string)
- func BytesToUint24(b []byte) uint32
- func BytesToUint32(b []byte) uint32
- func CutPadding(payload []byte, length int) ([]byte, error)
- func EqualsFold(a, b []byte) bool
- func FastBytesToString(b []byte) string
- func Resize(b []byte, neededLen int) []byte
- func Uint24ToBytes(b []byte, n uint32)
- func Uint32ToBytes(b []byte, n uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPadding ¶
func AppendUint32Bytes ¶
func AssertEqual ¶
AssertEqual checks if values are equal.
func BytesToUint24 ¶
func BytesToUint32 ¶
func CutPadding ¶
CutPadding cuts the padding if the frame has FlagPadded from the payload and returns the new payload as byte slice.
func EqualsFold ¶
func FastBytesToString ¶
func Uint24ToBytes ¶
func Uint32ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.