pkg

package
v0.0.0-...-e8f0ea7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logrus.New()

Functions

func ParseBandDLULFile

func ParseBandDLULFile(downlink string, uplink string) []types.Entry

func ParseBandFile

func ParseBandFile(path string) []types.Entry

func ReadComboFile

func ReadComboFile(path string)

func WriteComboFile

func WriteComboFile(entries []types.Entry, mode ComboWriterMode, path string)

Types

type ComboEdit

type ComboEdit struct {
	FileContent []byte
}

func NewComboEdit

func NewComboEdit(input []byte) ComboEdit

func (*ComboEdit) Parse

func (c *ComboEdit) Parse() ComboFile

type ComboFile

type ComboFile struct {
	EntriesLen uint16
	Entries    []types.Entry
}

type ComboWriter

type ComboWriter struct {
	FileBody      []byte
	EntriesLength int
	Mode          ComboWriterMode
}

func (*ComboWriter) SetMode

func (w *ComboWriter) SetMode(mode ComboWriterMode)

func (*ComboWriter) Write

func (w *ComboWriter) Write(entries []types.Entry) []byte

type ComboWriterMode

type ComboWriterMode int
const (
	COMBOWRITER_137_138 ComboWriterMode = 137
	COMBOWRITER_201_202 ComboWriterMode = 201
)

func (ComboWriterMode) String

func (i ComboWriterMode) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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