An IEncoding implements a method for encoding pixel data that is sent by the server to the client.
| 9 | // An IEncoding implements a method for encoding pixel data that is |
| 10 | // sent by the server to the client. |
| 11 | type 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. |
| 22 | type EncodingType int32 |
no outgoing calls
no test coverage detected