fastpath

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

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedX224 = errors.New("unexpected x224")

Functions

This section is empty.

Types

type BitmapData

type BitmapData struct {
	DestLeft         uint16
	DestTop          uint16
	DestRight        uint16
	DestBottom       uint16
	Width            uint16
	Height           uint16
	BitsPerPixel     uint16
	Flags            BitmapDataFlag
	BitmapLength     uint16
	BitmapComprHdr   *CompressedDataHeader
	BitmapDataStream []byte
}

func (*BitmapData) Deserialize

func (d *BitmapData) Deserialize(wire io.Reader) error

type BitmapDataFlag

type BitmapDataFlag uint16
const (
	// BitmapDataFlagCompression BITMAP_COMPRESSION
	BitmapDataFlagCompression BitmapDataFlag = 0x0001

	// BitmapDataFlagNoHDR NO_BITMAP_COMPRESSION_HDR
	BitmapDataFlagNoHDR BitmapDataFlag = 0x0400
)

type CompressedDataHeader

type CompressedDataHeader struct {
	CbCompMainBodySize uint16
	CbScanWidth        uint16
	CbUncompressedSize uint16
}

func (*CompressedDataHeader) Deserialize

func (h *CompressedDataHeader) Deserialize(wire io.Reader) error

type Compression

type Compression uint8
const (
	CompressionUsed Compression = 0x2
)

type Fragment

type Fragment uint8
const (
	FragmentSingle Fragment = 0x0
	FragmentLast   Fragment = 0x1
	FragmentFirst  Fragment = 0x2
	FragmentNext   Fragment = 0x3
)

type InputEventPDU

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

func NewInputEventPDU

func NewInputEventPDU(eventData []byte) *InputEventPDU

func (*InputEventPDU) Serialize

func (pdu *InputEventPDU) Serialize() []byte

func (*InputEventPDU) SerializeLength

func (pdu *InputEventPDU) SerializeLength(value int, w io.Writer) error

type PaletteEntry

type PaletteEntry struct {
	Red   uint8
	Green uint8
	Blue  uint8
}

func (*PaletteEntry) Deserialize

func (e *PaletteEntry) Deserialize(wire io.Reader) error

type Protocol

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

func New

func New(conn io.ReadWriter) *Protocol

func (*Protocol) Receive

func (i *Protocol) Receive() (*UpdatePDU, error)

func (*Protocol) Send

func (i *Protocol) Send(pdu *InputEventPDU) error

type Update

type Update struct {
	UpdateCode UpdateCode
	// contains filtered or unexported fields
}

func (*Update) Deserialize

func (u *Update) Deserialize(wire io.Reader) error

type UpdateCode

type UpdateCode uint8
const (
	UpdateCodeOrders       UpdateCode = 0x0
	UpdateCodeBitmap       UpdateCode = 0x1
	UpdateCodePalette      UpdateCode = 0x2
	UpdateCodeSynchronize  UpdateCode = 0x3
	UpdateCodeSurfCMDs     UpdateCode = 0x4
	UpdateCodePTRNull      UpdateCode = 0x5
	UpdateCodePTRDefault   UpdateCode = 0x6
	UpdateCodePTRPosition  UpdateCode = 0x8
	UpdateCodeColor        UpdateCode = 0x9
	UpdateCodeCached       UpdateCode = 0xa
	UpdateCodePointer      UpdateCode = 0xb
	UpdateCodeLargePointer UpdateCode = 0xc
)

type UpdatePDU

type UpdatePDU struct {
	Action UpdatePDUAction
	Flags  UpdatePDUFlag
	Data   []byte
	// contains filtered or unexported fields
}

func (*UpdatePDU) Deserialize

func (pdu *UpdatePDU) Deserialize(wire io.Reader) error

type UpdatePDUAction

type UpdatePDUAction uint8
const (
	UpdatePDUActionFastPath UpdatePDUAction = 0x0
	UpdatePDUActionX224     UpdatePDUAction = 0x3
)

type UpdatePDUFlag

type UpdatePDUFlag uint8
const (
	UpdatePDUFlagSecureChecksum UpdatePDUFlag = 0x1
	UpdatePDUFlagEncrypted      UpdatePDUFlag = 0x2
)

Jump to

Keyboard shortcuts

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