Lines Matching defs:chunk
203 auto chunk{::read(fd_, buffer + got, maxBytes - got)};
204 if (chunk == 0) {
206 } else if (chunk < 0) {
213 SetPosition(position_ + chunk);
214 got += chunk;
231 auto chunk{::write(fd_, buffer + put, bytes - put)};
232 if (chunk >= 0) {
233 SetPosition(position_ + chunk);
234 put += chunk;
276 auto chunk{::pread(fd_, buffer + got, bytes - got, at)};
278 auto chunk{Seek(at, handler) ? ::read(fd_, buffer + got, bytes - got) : -1};
280 if (chunk == 0) {
284 if (chunk < 0) {
291 at += chunk;
292 got += chunk;
305 auto chunk{::pwrite(fd_, buffer + put, bytes - put, at)};
307 auto chunk{
310 if (chunk >= 0) {
311 at += chunk;
312 put += chunk;