decoder

package
v0.0.0-...-7af0584 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractDecoder

type AbstractDecoder struct {
	LeaveOpen bool
	Disposed  bool
}

func (AbstractDecoder) CheckDisposed

func (a AbstractDecoder) CheckDisposed()

func (AbstractDecoder) HasContent

func (a AbstractDecoder) HasContent() bool

type IDecoder

type IDecoder[v int | uint | uint64 | string | byte] interface {
	Read() v
}

type IncUintOptRleDecoder

type IncUintOptRleDecoder struct {
	Disposed bool
	// contains filtered or unexported fields
}

func NewIncUintOptRleDecoder

func NewIncUintOptRleDecoder(input *bufio.Reader, leaveOpen bool) *IncUintOptRleDecoder

func (IncUintOptRleDecoder) CheckDisposed

func (i IncUintOptRleDecoder) CheckDisposed() error

func (IncUintOptRleDecoder) Read

func (i IncUintOptRleDecoder) Read() uint

func (IncUintOptRleDecoder) ReadV

func (i IncUintOptRleDecoder) ReadV() any

type IntDiffDecoder

type IntDiffDecoder struct {
	AbstractDecoder

	State int
	// contains filtered or unexported fields
}

IntDiffDecoder Basic diff encoder using variable length encoding. Encodes the values <c>[3, 1100, 1101, 1050, 0]</c> to <c>[3, 1097, 1, -51, -1050]</c>. <seealso cref="IntDiffDecoder"/>

func (IntDiffDecoder) Read

func (i IntDiffDecoder) Read() int

type IntDiffOptRleDecoder

type IntDiffOptRleDecoder struct {
	AbstractDecoder
	Reader *bufio.Reader
	State  int
	Count  uint64
	Diff   int
}

func (IntDiffOptRleDecoder) Read

func (d IntDiffOptRleDecoder) Read() int

type RleDecoder

type RleDecoder struct {
	AbstractDecoder
	Reader *bufio.Reader
	State  byte
	Count  int
}

func (RleDecoder) Read

func (r RleDecoder) Read() byte

type RleIntDiffDecoder

type RleIntDiffDecoder struct {
	AbstractDecoder
	Reader *bufio.Reader
	State  int
	Count  int
}

func (RleIntDiffDecoder) Read

func (r RleIntDiffDecoder) Read() int

type StringDecoder

type StringDecoder struct {
	AbstractDecoder
	Reader *bufio.Reader

	LengthDecoder UintOptRleDecoder
	Value         string
	Pos           int
	Disposed      bool
}

func (StringDecoder) Read

func (s StringDecoder) Read() string

type UintOptRleDecoder

type UintOptRleDecoder struct {
	AbstractDecoder
	Reader *bufio.Reader
	State  uint64
	Count  uint64
}

func (UintOptRleDecoder) Read

func (d UintOptRleDecoder) Read() uint64

Jump to

Keyboard shortcuts

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