mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-09-22 09:59:04 +00:00
general refactoring + fixed setcursorpseudo
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user