github.com/amitbet/vnc2video@v0.0.0-20190616012314-9d50b9dab1d9/encoding_desktopsize.go (about) 1 package vnc2video 2 3 // DesktopSizePseudoEncoding represents a desktop size message from the server. 4 type DesktopSizePseudoEncoding struct{} 5 6 func (*DesktopSizePseudoEncoding) Supported(Conn) bool { 7 return true 8 } 9 func (*DesktopSizePseudoEncoding) Reset() error { 10 return nil 11 } 12 func (*DesktopSizePseudoEncoding) Type() EncodingType { return EncDesktopSizePseudo } 13 14 // Read implements the Encoding interface. 15 func (*DesktopSizePseudoEncoding) Read(c Conn, rect *Rectangle) error { 16 return nil 17 } 18 19 func (enc *DesktopSizePseudoEncoding) Write(c Conn, rect *Rectangle) error { 20 return nil 21 }