// start filling the array with bytes from the files.
while (storage.length() < maximum_bytes) {
double remaining_in_array = maximum_bytes - storage.length()
// start filling the array with bytes from the files.
while (storage.length() < maximum_bytes) {
double remaining_in_array = maximum_bytes - storage.length()
}
const file_info *found = to_transfer.find(last_action._filename);
if (!found) {
// they have referenced a file that we don't have. that's bad news.
}
const file_info *found = to_transfer.find(last_action._filename);
if (!found) {
// they have referenced a file that we don't have. that's bad news.
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
}
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
}
// this file is done now. go to the next one.
#ifdef DEBUG_HEAVY_FILE_OPS
LOG(astring("finished stuffing file: ") + full_file);
#endif
// this file is done now. go to the next one.
#ifdef DEBUG_HEAVY_FILE_OPS
LOG(astring("finished stuffing file: ") + full_file);
#endif
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
}
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
}
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
if (!current.length()) {
// ensure we don't get stuck redoing zero length files, which we allowed
// to go past their end above (since otherwise we'd never see them).
if (!current.length()) {
// ensure we don't get stuck redoing zero length files, which we allowed
// to go past their end above (since otherwise we'd never see them).
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;
to_return = advance(to_transfer, last_action);
if (to_return != OKAY) break;
continue;