(command byte)
| 5 | ) |
| 6 | |
| 7 | func (c *Conn) writeCommand(command byte) error { |
| 8 | c.ResetSequence() |
| 9 | |
| 10 | return c.WritePacket([]byte{ |
| 11 | 0x01, // 1 bytes long |
| 12 | 0x00, |
| 13 | 0x00, |
| 14 | 0x00, // sequence |
| 15 | command, |
| 16 | }) |
| 17 | } |
| 18 | |
| 19 | func (c *Conn) writeCommandBuf(command byte, arg []byte) error { |
| 20 | c.ResetSequence() |
no test coverage detected