| 54 | } |
| 55 | } |
| 56 | void initStringData(std::vector<char>& result, std::vector<int32_t>& offset, |
| 57 | int cnt) { |
| 58 | offset.resize(cnt); |
| 59 | for (int i = 0; i < cnt; ++i) { |
| 60 | offset[i] = 4; |
| 61 | } |
| 62 | int ind = 0; |
| 63 | result.resize(4 * cnt); |
| 64 | for (int i = 0; i < cnt; ++i) { |
| 65 | for (int j = 0; j < 4; ++j) { |
| 66 | result[ind] = j; |
| 67 | ind += 1; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | int main(int argc, char** argv) { |
| 73 | if (argc != 2) { |