decoder

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet []Value

func (Packet) Compare

func (p Packet) Compare(p2 Packet) int

func (Packet) String

func (p Packet) String() string

type Parser

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

func NewParser

func NewParser(s Scanner) *Parser

func (*Parser) ParsePacket

func (p *Parser) ParsePacket(text string) Packet

func (*Parser) ParseSignal

func (p *Parser) ParseSignal() Signal

type Scanner

type Scanner interface {
	Scan() bool
	Text() string
}

type Signal

type Signal []Packet

func (Signal) DecoderKey

func (s Signal) DecoderKey(divider1, divider2 Packet) int

func (Signal) PairsInRightOrder

func (s Signal) PairsInRightOrder() int

type Value

type Value struct {
	Value  *int
	Packet Packet
}

func (*Value) Compare

func (v *Value) Compare(v2 Value) int

func (Value) String

func (v Value) String() string

func (*Value) UnmarshalJSON

func (v *Value) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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