| 1 | package main |
| 2 | |
| 3 | const ( |
| 4 | maxNonStarters = 30 |
| 5 | maxBufferSize = maxNonStarters + 2 |
| 6 | ) |
| 7 | |
| 8 | type reorderBuffer struct { |
| 9 | rune [maxBufferSize]Properties |
| 10 | } |
| 11 | |
| 12 | type Properties struct { |
| 13 | pos uint8 |
| 14 | size uint8 |
| 15 | } |
| 16 | |
| 17 | func main() { |
| 18 | println(len(reorderBuffer{}.rune)) |
| 19 | } |
| 20 | |
| 21 | // Output: |
| 22 | // 32 |