Searched refs:file_size (Results 1 – 3 of 3) sorted by relevance
48 off64_t file_size = file_->seekTo(0, SEEK_END); in Initialize() local49 if (file_size > 0) { in Initialize()50 auto file_data = std::vector<char>(file_size); in Initialize()52 ssize_t bytes_read = file_->read(file_data.data(), file_size); in Initialize()53 if (bytes_read != file_size) { in Initialize()55 bytes_read, file_size); in Initialize()59 sp<JSONCompound> json = JSONCompound::Parse(file_data.data(), file_size); in Initialize()
153 long file_size = ftell(firmware_file); in Flash() local156 auto firmware_data = std::vector<uint8_t>(file_size); in Flash()158 file_size, firmware_file); in Flash()161 if (bytes_read != static_cast<size_t>(file_size)) { in Flash()163 bytes_read, file_size); in Flash()
373 auto file_size = cuttlefish::FileSize(disk.image_file_path); in AggregateImage() local374 if (!output->CopyFrom(*disk_fd, file_size)) { in AggregateImage()