Home | History | Annotate | Download | only in google

Lines Matching defs:num_bytes_read

216     const int num_bytes_read = unzReadCurrentFile(zip_file_, buf,
218 if (num_bytes_read == 0) {
221 } else if (num_bytes_read < 0) {
222 // If num_bytes_read < 0, then it's a specific UNZ_* error code.
225 } else if (num_bytes_read > 0) {
227 if (num_bytes_read != file.WriteAtCurrentPos(buf, num_bytes_read)) {
323 const int num_bytes_read = unzReadCurrentFile(zip_file_, buf,
325 if (num_bytes_read == 0) {
328 } else if (num_bytes_read < 0) {
329 // If num_bytes_read < 0, then it's a specific UNZ_* error code.
332 } else if (num_bytes_read > 0) {
334 if (num_bytes_read !=
335 base::WriteFileDescriptor(fd, buf, num_bytes_read)) {
374 const int num_bytes_read = unzReadCurrentFile(zip_file_, buf,
376 if (num_bytes_read == 0) {
379 } else if (num_bytes_read < 0) {
380 // If num_bytes_read < 0, then it's a specific UNZ_* error code.
383 } else if (num_bytes_read > 0) {
384 if (contents.size() + num_bytes_read > max_read_bytes) {
388 contents.append(buf, num_bytes_read);
429 const int num_bytes_read = unzReadCurrentFile(zip_file_,
433 if (num_bytes_read == 0) {
436 } else if (num_bytes_read < 0) {
438 << "(" << num_bytes_read << ")";
441 if (num_bytes_read != output_file.Write(offset, buffer, num_bytes_read)) {
447 int64 current_progress = offset + num_bytes_read;