Lines Matching refs:bytes_read
120 int bytes_read = image_file_.Read(bytes_processed_, buffer.get(),
123 if (bytes_read > 0) {
126 int bytes_to_write = bytes_read + (kMemoryAlignment - 1) -
127 (bytes_read - 1) % kMemoryAlignment;
132 if (bytes_written < bytes_read) {
137 bytes_processed_ += bytes_read;
141 } else if (bytes_read == 0) {
162 int bytes_read = image_file_.Read(bytes_processed_, image_buffer.get(),
165 if (bytes_read > 0) {
168 kBurningBlockSize) < bytes_read) {
169 LOG(ERROR) << "Failed to read " << bytes_read << " bytes of "
175 if (memcmp(image_buffer.get(), device_buffer.get(), bytes_read) != 0) {
176 LOG(ERROR) << "Write verification failed when comparing " << bytes_read
182 bytes_processed_ += bytes_read;
186 } else if (bytes_read == 0) {