(bytes []byte)
| 68 | } |
| 69 | |
| 70 | func bytesToCommand(bytes []byte) string { |
| 71 | var command []byte |
| 72 | |
| 73 | for _, b := range bytes { |
| 74 | if b != 0x0 { |
| 75 | command = append(command, b) |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return fmt.Sprintf("%s", command) |
| 80 | } |
| 81 | |
| 82 | func extractCommand(request []byte) []byte { |
| 83 | return request[:commandLength] |