Lines Matching refs:size

67     file->size = file->st.st_size;  in LoadFileContents()
68 file->data = malloc(file->size); in LoadFileContents()
78 ssize_t bytes_read = fread(file->data, 1, file->size, f); in LoadFileContents()
79 if (bytes_read != file->size) { in LoadFileContents()
81 filename, (long)bytes_read, (long)file->size); in LoadFileContents()
88 SHA_hash(file->data, file->size, file->sha1); in LoadFileContents()
155 size_t* size = malloc(pairs * sizeof(size_t)); in LoadPartitionContents() local
160 size[i] = strtol(size_str, NULL, 10); in LoadPartitionContents()
161 if (size[i] == 0) { in LoadPartitionContents()
171 size_array = size; in LoadPartitionContents()
213 file->data = malloc(size[index[pairs-1]]); in LoadPartitionContents()
215 file->size = 0; // # bytes read so far in LoadPartitionContents()
221 size_t next = size[index[i]] - file->size; in LoadPartitionContents()
241 file->size += read; in LoadPartitionContents()
262 size[index[i]], sha1sum[index[i]]); in LoadPartitionContents()
302 free(size); in LoadPartitionContents()
319 ssize_t bytes_written = FileSink(file->data, file->size, &fd); in SaveFileContents()
320 if (bytes_written != file->size) { in SaveFileContents()
322 filename, (long)bytes_written, (long)file->size, in SaveFileContents()
643 ssize_t size; member
649 if (msi->size - msi->pos < len) { in MemorySink()
850 if (MakeFreeSpaceOnCache(source_file->size) < 0) { in GenerateTarget()
892 if (MakeFreeSpaceOnCache(source_file->size) < 0) { in GenerateTarget()
937 msi.size = target_size; in GenerateTarget()
958 ssize_t header_bytes_read = patch->size; in GenerateTarget()
966 result = ApplyBSDiffPatch(source_to_use->data, source_to_use->size, in GenerateTarget()
970 result = ApplyImagePatch(source_to_use->data, source_to_use->size, in GenerateTarget()