packet_parser

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ByteOrder string `toml:"byte_order,omitempty"`
}

func (Config) GetByteOrder

func (config Config) GetByteOrder() binary.ByteOrder

type EnumDescriptor

type EnumDescriptor []string

type PacketParser

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

func CreatePacketParser

func CreatePacketParser(info info.Info, boards []pod_data.Board, trace zerolog.Logger) (PacketParser, error)

func (*PacketParser) Decode

func (parser *PacketParser) Decode(id uint16, raw []byte, metadata packet.Metadata) (models.PacketUpdate, error)

func (*PacketParser) Encode

func (parser *PacketParser) Encode(id uint16, values map[string]packet.Value, writer io.Writer) error

type ValueDescriptor

type ValueDescriptor struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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