packettrailer

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Magic = [4]byte{'L', 'K', 'T', 'S'}

Functions

func StripTrailer

func StripTrailer(payload []byte, marker bool) int

StripTrailer returns the number of bytes to strip from the end of an RTP payload if it contains an LKTS trailer. The trailer is located by checking for the "LKTS" magic suffix and then reading the XORed trailer_len byte immediately before it. Returns 0 if absent or ineligible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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