encodings

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HextileRaw                 = 1
	HextileBackgroundSpecified = 2
	HextileForegroundSpecified = 4
	HextileAnySubrects         = 8
	HextileSubrectsColoured    = 16
)
View Source
const (
	TightExplicitFilter = 0x04
	TightFill           = 0x08
	TightJpeg           = 0x09
	TightPNG            = 0x10

	TightFilterCopy     = 0x00
	TightFilterPalette  = 0x01
	TightFilterGradient = 0x02
)

Variables

View Source
var TightMinToCompress int = 12

Functions

func StoreBytes

func StoreBytes(bytes *bytes.Buffer, data []byte)

Types

type CoRREEncoding

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

func (*CoRREEncoding) Read

func (*CoRREEncoding) Type

func (z *CoRREEncoding) Type() int32

func (*CoRREEncoding) WriteTo

func (z *CoRREEncoding) WriteTo(w io.Writer) (n int, err error)

type CopyRectEncoding

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

func (*CopyRectEncoding) Read

func (*CopyRectEncoding) Type

func (z *CopyRectEncoding) Type() int32

func (*CopyRectEncoding) WriteTo

func (z *CopyRectEncoding) WriteTo(w io.Writer) (n int, err error)

type EncCursorPseudo

type EncCursorPseudo struct {
}

func (*EncCursorPseudo) Read

func (*EncCursorPseudo) Type

func (pe *EncCursorPseudo) Type() int32

func (*EncCursorPseudo) WriteTo

func (z *EncCursorPseudo) WriteTo(w io.Writer) (n int, err error)

type EncLedStatePseudo

type EncLedStatePseudo struct {
	LedState uint8
}

func (*EncLedStatePseudo) Read

func (*EncLedStatePseudo) Type

func (pe *EncLedStatePseudo) Type() int32

func (*EncLedStatePseudo) WriteTo

func (pe *EncLedStatePseudo) WriteTo(w io.Writer) (n int, err error)

type HextileEncoding

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

func (*HextileEncoding) Read

func (*HextileEncoding) Type

func (z *HextileEncoding) Type() int32

func (*HextileEncoding) WriteTo

func (z *HextileEncoding) WriteTo(w io.Writer) (n int, err error)

type PseudoEncoding

type PseudoEncoding struct {
	Typ int32
}

func (*PseudoEncoding) Read

func (*PseudoEncoding) Type

func (pe *PseudoEncoding) Type() int32

func (*PseudoEncoding) WriteTo

func (z *PseudoEncoding) WriteTo(w io.Writer) (n int, err error)

type RREEncoding

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

func (*RREEncoding) Read

func (*RREEncoding) Type

func (z *RREEncoding) Type() int32

func (*RREEncoding) WriteTo

func (z *RREEncoding) WriteTo(w io.Writer) (n int, err error)

type RawEncoding

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

RawEncoding is raw pixel data sent by the server.

func (*RawEncoding) Read

func (*RawEncoding) Type

func (*RawEncoding) Type() int32

func (*RawEncoding) WriteTo

func (z *RawEncoding) WriteTo(w io.Writer) (n int, err error)

type TightEncoding

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

func (*TightEncoding) Read

func (*TightEncoding) Type

func (*TightEncoding) Type() int32

func (*TightEncoding) WriteTo

func (z *TightEncoding) WriteTo(w io.Writer) (n int, err error)

type TightPngEncoding

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

func (*TightPngEncoding) Read

func (*TightPngEncoding) Type

func (*TightPngEncoding) Type() int32

func (*TightPngEncoding) WriteTo

func (z *TightPngEncoding) WriteTo(w io.Writer) (n int, err error)

type ZLibEncoding

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

func (*ZLibEncoding) Read

func (*ZLibEncoding) Type

func (z *ZLibEncoding) Type() int32

func (*ZLibEncoding) WriteTo

func (z *ZLibEncoding) WriteTo(w io.Writer) (n int, err error)

type ZRLEEncoding

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

func (*ZRLEEncoding) Read

func (*ZRLEEncoding) Type

func (z *ZRLEEncoding) Type() int32

func (*ZRLEEncoding) WriteTo

func (z *ZRLEEncoding) WriteTo(w io.Writer) (n int, err error)

Jump to

Keyboard shortcuts

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