http2utils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPadding

func AddPadding(b []byte) []byte

func AppendUint32Bytes

func AppendUint32Bytes(dst []byte, n uint32) []byte

func AssertEqual

func AssertEqual(tb testing.TB, expected, actual interface{}, description ...string)

AssertEqual checks if values are equal.

func BytesToUint24

func BytesToUint24(b []byte) uint32

func BytesToUint32

func BytesToUint32(b []byte) uint32

func CutPadding

func CutPadding(payload []byte, length int) ([]byte, error)

CutPadding cuts the padding if the frame has FlagPadded from the payload and returns the new payload as byte slice.

func EqualsFold

func EqualsFold(a, b []byte) bool

func FastBytesToString

func FastBytesToString(b []byte) string

func Resize

func Resize(b []byte, neededLen int) []byte

func Uint24ToBytes

func Uint24ToBytes(b []byte, n uint32)

func Uint32ToBytes

func Uint32ToBytes(b []byte, n uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL