MCPcopy Create free account
hub / github.com/amitbet/vncproxy / IEncoding

Interface IEncoding

common/encoding.go:11–19  ·  view source on GitHub ↗

An IEncoding implements a method for encoding pixel data that is sent by the server to the client.

Source from the content-addressed store, hash-verified

9// An IEncoding implements a method for encoding pixel data that is
10// sent by the server to the client.
11type IEncoding interface {
12 // The number that uniquely identifies this encoding type.
13 Type() int32
14 WriteTo(w io.Writer) (n int, err error)
15 // Read reads the contents of the encoded pixel data from the reader.
16 // This should return a new IEncoding implementation that contains
17 // the proper data.
18 Read(*PixelFormat, *Rectangle, *RfbReadHelper) (IEncoding, error)
19}
20
21// EncodingType represents a known VNC encoding type.
22type EncodingType int32

Callers 18

SetEncodingsMethod · 0.65
mainLoopMethod · 0.65
StringMethod · 0.65
ReadMethod · 0.65
ConsumeMethod · 0.65
ConsumeMethod · 0.65
ConsumeMethod · 0.65
ConsumeMethod · 0.65
writeToDiskMethod · 0.65
ServerServerInitHandlerFunction · 0.65
ReadMethod · 0.65
handshakeMethod · 0.65

Implementers 12

RREEncodingencodings/enc-rre.go
EncLedStatePseudoencodings/enc-led-state.go
RawEncodingencodings/enc-raw.go
TightPngEncodingencodings/enc-tightpng.go
ZLibEncodingencodings/enc-zlib.go
CopyRectEncodingencodings/enc-copy-rect.go
TightEncodingencodings/enc-tight.go
ZRLEEncodingencodings/enc-zrle.go
HextileEncodingencodings/enc-hextile.go
EncCursorPseudoencodings/enc-cursor-pseudo.go
CoRREEncodingencodings/enc-corre.go
PseudoEncodingencodings/enc-pseudo.go

Calls

no outgoing calls

Tested by

no test coverage detected