| 54 | ~FlatArrayCodec() {} |
| 55 | |
| 56 | bool Append(bool data) { |
| 57 | if (cur_cnt_ >= col_cnt_) { |
| 58 | return false; |
| 59 | } |
| 60 | if (data) { |
| 61 | Encode(kBool, static_cast<const void*>(&bool_true), 1); |
| 62 | } else { |
| 63 | Encode(kBool, static_cast<const void*>(&bool_false), 1); |
| 64 | } |
| 65 | cur_cnt_++; |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | bool Append(uint16_t data) { |
| 70 | if (cur_cnt_ >= col_cnt_) { |