| 335 | class ByteMapBuilder { |
| 336 | public: |
| 337 | ByteMapBuilder() { |
| 338 | // Initial state: the [0-255] range has color 256. |
| 339 | // This will avoid problems during the second phase, |
| 340 | // in which we assign byte classes numbered from 0. |
| 341 | splits_.Set(255); |
| 342 | colors_[255] = 256; |
| 343 | nextcolor_ = 257; |
| 344 | } |
| 345 | |
| 346 | void Mark(int lo, int hi); |
| 347 | void Merge(); |