(cmd, arg, data, crc []byte)
| 13 | } |
| 14 | |
| 15 | func NewCommand(cmd, arg, data, crc []byte) *Command { |
| 16 | return &Command{ |
| 17 | cmd: cmd, |
| 18 | arg: arg, |
| 19 | data: data, |
| 20 | crc: crc, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (c *Command) Bytes() []byte { |
| 25 | bytes := crunchio.NewBuffer(string(c.cmd)) |