descriptor

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(tag uint8, fn func() Descriptor)

Register registers a new tag to a function that will return an appropriate Descriptor for that tag.

Types

type Descriptor

type Descriptor interface {
	Tag() uint8
	Len() int

	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

Descriptor defines an MPEG-TS Descriptor.

func Unmarshal

func Unmarshal(b []byte) (d Descriptor, err error)

Unmarshal decodes an arbitrary Descriptor from a byte slice.

Jump to

Keyboard shortcuts

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