()
| 18 | } |
| 19 | |
| 20 | func (m *MsgFramebufferUpdate) String() string { |
| 21 | str := fmt.Sprintf("MsgFramebufferUpdate (type=%d) Rects: ", m.Type()) |
| 22 | for _, rect := range m.Rectangles { |
| 23 | str += rect.String() + "\n" |
| 24 | //if this is the last rect, break the loop |
| 25 | if rect.Enc.Type() == int32(common.EncLastRectPseudo) { |
| 26 | break |
| 27 | } |
| 28 | } |
| 29 | return str |
| 30 | } |
| 31 | |
| 32 | func (*MsgFramebufferUpdate) Type() uint8 { |
| 33 | return 0 |