vncproxy/encodings/enc-pseudo.go
Yoan Blanc 11b1d45ce9
global: make the whole package go mod ready
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-11-30 09:40:45 +01:00

21 lines
400 B
Go

package encodings
import (
"io"
"github.com/amitbet/vncproxy/common"
)
type PseudoEncoding struct {
Typ int32
}
func (pe *PseudoEncoding) Type() int32 {
return pe.Typ
}
func (z *PseudoEncoding) WriteTo(w io.Writer) (n int, err error) {
return 0, nil
}
func (pe *PseudoEncoding) Read(*common.PixelFormat, *common.Rectangle, *common.RfbReadHelper) (common.IEncoding, error) {
return pe, nil
}