Lines Matching defs:wrote
175 ssize_t wrote = pwrite(fd_.get(), buf, len, place);
176 if (wrote < 0) {
180 len -= wrote;
181 buf += wrote;
182 place += wrote;
204 ssize_t wrote = writev(fd_.get(), &(*read_pos), write_pos_ - read_pos);
205 if (wrote < 0) {
209 flushed_ += wrote;
216 while (wrote >= read_pos->iov_len) {
217 wrote -= read_pos->iov_len;
219 if (wrote == 0) {
224 if (wrote > 0) {
225 // writev wrote only part of this buffer. Do the rest next time.
226 read_pos->iov_len -= wrote;
228 static_cast<std::byte*>(read_pos->iov_base) + wrote);
1077 uint32_t wrote = compress_ ? StreamCompressed(out) : StreamRaw(out);
1078 assert(out->WritePosition() % ZBI_ALIGNMENT == wrote % ZBI_ALIGNMENT);
1079 uint32_t aligned = ZBI_ALIGN(wrote);
1080 if (aligned > wrote) {
1082 out->Write(Iovec(padding, aligned - wrote));