(indentSpaces int, cols int)
| 70 | } |
| 71 | |
| 72 | func (o *output) bytesArray(indentSpaces int, cols int) { |
| 73 | indent := strings.Repeat(" ", indentSpaces) |
| 74 | |
| 75 | fmt.Print(indent) |
| 76 | |
| 77 | for i, b := range o.data { |
| 78 | if i > 0 { |
| 79 | if cols > 0 && i%cols == 0 { |
| 80 | fmt.Print(",\n") |
| 81 | fmt.Print(indent) |
| 82 | } else { |
| 83 | fmt.Print(", ") |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | fmt.Printf("0x%02x", b) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func (o *output) raw() { |
| 92 | /* |