Lines Matching defs:sz
54 size_t sz = 0;
69 if (sz >= max_cap) {
70 fprintf(stderr, "Approaching physical memory capacity: %zd bytes\n", sz);
85 if ((sz + r) % PRINT_SIZE < (sz % PRINT_SIZE)) {
86 fprintf(stderr, "wrote %lu MB\n", (sz + r) / MB);
88 sz += r;
95 fprintf(stderr, "wrote %lu bytes\n", sz);
99 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz), "Unexpected max file size");
109 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz), "Unexpected max file size");
113 while (bytes_read < sz) {
115 ASSERT_EQ(r, static_cast<ssize_t>(fbl::min(sz - bytes_read, sizeof(readbuf))));
121 ASSERT_EQ(bytes_read, sz);
159 size_t* sz = &sz_a;
163 if (*sz >= max_cap) {
164 fprintf(stderr, "Approaching physical memory capacity: %zd bytes\n", *sz);
177 if ((*sz + r) % PRINT_SIZE < (*sz % PRINT_SIZE)) {
178 fprintf(stderr, "wrote %lu MB\n", (*sz + r) / MB);
180 *sz += r;
185 sz = (sz == &sz_a) ? &sz_b : &sz_a;
213 sz = &sz_a;
215 while (*bytes_read < *sz) {
217 ASSERT_EQ(r, static_cast<ssize_t>(fbl::min(*sz - *bytes_read, sizeof(readbuf))));
223 sz = (sz == &sz_a) ? &sz_b : &sz_a;