http2utils

package
v0.0.8-0...-19c1a77 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: Apache-2.0 Imports: 5 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 BytesToUint24

func BytesToUint24(b []byte) uint32

func BytesToUint32

func BytesToUint32(b []byte) uint32

func CutPadding

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

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 FastStringToBytes

func FastStringToBytes(s string) []byte

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