| 261 | } |
| 262 | |
| 263 | Status AdaptiveIntBuilder::ExpandIntSize(uint8_t new_int_size) { |
| 264 | switch (new_int_size) { |
| 265 | case 1: |
| 266 | return ExpandIntSizeN<int8_t>(); |
| 267 | case 2: |
| 268 | return ExpandIntSizeN<int16_t>(); |
| 269 | case 4: |
| 270 | return ExpandIntSizeN<int32_t>(); |
| 271 | case 8: |
| 272 | return ExpandIntSizeN<int64_t>(); |
| 273 | default: |
| 274 | DCHECK(false); |
| 275 | } |
| 276 | return Status::OK(); |
| 277 | } |
| 278 | |
| 279 | AdaptiveUIntBuilder::AdaptiveUIntBuilder(uint8_t start_int_size, MemoryPool* pool) |
| 280 | : AdaptiveIntBuilderBase(start_int_size, pool) {} |