packetmap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package packetmap implements remapping of sequence numbers and picture ids.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	// contains filtered or unexported fields
}

func (*Map) Drop

func (m *Map) Drop(seqno uint16, pid uint16) bool

Drop attempts to record a dropped packet. It returns true if the packet is safe to drop.

func (*Map) Map

func (m *Map) Map(seqno uint16, pid uint16) (bool, uint16, uint16)

Map maps a seqno, adding the mapping if required. It returns whether the seqno could be mapped, the target seqno, and the pid delta to apply.

func (*Map) Reverse

func (m *Map) Reverse(seqno uint16) (bool, uint16, uint16)

Reverse maps a target seqno to the original seqno. It returns true if the seqno could be mapped, the original seqno, and the pid delta to apply in reverse.

Jump to

Keyboard shortcuts

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