general refactoring + fixed setcursorpseudo

This commit is contained in:
amit bezalel
2017-07-20 02:01:40 +03:00
parent 662e8393e9
commit 2d87ae5773
38 changed files with 1082 additions and 1381 deletions

View File

@@ -6,16 +6,16 @@ import (
"io"
)
// An Encoding implements a method for encoding pixel data that is
// An IEncoding implements a method for encoding pixel data that is
// sent by the server to the client.
type Encoding interface {
type IEncoding interface {
// The number that uniquely identifies this encoding type.
Type() int32
WriteTo(w io.Writer) (n int, err error)
// Read reads the contents of the encoded pixel data from the reader.
// This should return a new Encoding implementation that contains
// This should return a new IEncoding implementation that contains
// the proper data.
Read(*PixelFormat, *Rectangle, *RfbReadHelper) (Encoding, error)
Read(*PixelFormat, *Rectangle, *RfbReadHelper) (IEncoding, error)
}
// EncodingType represents a known VNC encoding type.