Lines Matching refs:headerSize
102 uint64_t headerSize = 0; in load() local
103 if (lengthRemaining < sizeof(headerSize)) { in load()
107 memcpy(&headerSize, localData, sizeof(headerSize)); in load()
108 localData += sizeof(headerSize); in load()
109 lengthRemaining -= sizeof(headerSize); in load()
111 if (lengthRemaining < headerSize) { in load()
119 localData += headerSize; in load()
120 lengthRemaining -= headerSize; in load()
154 uint64_t headerSize = 0; in load() local
155 len = fread(&headerSize, 1, sizeof(headerSize), f); in load()
156 if (len != sizeof(headerSize) || headerSize == 0) { in load()
160 uint8_t *headerData = (uint8_t *)malloc(headerSize); in load()
165 len = fread(headerData, 1, headerSize, f); in load()
166 if (len != headerSize) { in load()
339 uint64_t headerSize = headerStream.getPos(); in writeFile() local
340 fwrite(&headerSize, sizeof(headerSize), 1, writeHandle); in writeFile()