| 47 | }; |
| 48 | |
| 49 | static inline uint8_t GetAddrLength(uint32_t size) { |
| 50 | if (size <= UINT8_MAX) { |
| 51 | return 1; |
| 52 | } else if (size <= UINT16_MAX) { |
| 53 | return 2; |
| 54 | } else if (size <= UINT24_MAX) { |
| 55 | return 3; |
| 56 | } else { |
| 57 | return 4; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | RowBuilder::RowBuilder(const Schema& schema) |
| 62 | : schema_(schema), |