111 {
112 char buffer[1024u + 5 + 32];
113 char backup[1024u + 5 + 32];
114
115
116 for (size_t offset = 0; offset < 32; offset++) {
117 for (size_t step = 0; step < 1024; step++) {
118 char* json = buffer + offset;
121 for (size_t i = 0; i < step; i++)
122 *
p++ =
"ABCD"[i % 4];
127 strcpy(backup, json);
128
132 reader.
Parse<parseFlags>(
s, h);
136 }
137 }
138
139
140 for (size_t offset = 0; offset < 32; offset++) {
141 for (size_t step = 0; step < 1024; step++) {
142 char* json = buffer + offset;
147 for (size_t i = 0; i < step; i++)
148 *
p++ =
"ABCD"[i % 4];
151 strcpy(backup, json);
152
156 reader.
Parse<parseFlags>(
s, h);
160 }
161 }
162}
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
#define EXPECT_TRUE(condition)