Lines Matching refs:MultifileHeader
108 mHotCacheLimit = mMaxKeySize + mMaxValueSize + sizeof(MultifileHeader); in MultifileBlobCache()
181 MultifileHeader header; in MultifileBlobCache()
182 size_t result = read(fd, static_cast<void*>(&header), sizeof(MultifileHeader)); in MultifileBlobCache()
183 if (result != sizeof(MultifileHeader)) { in MultifileBlobCache()
218 crc32c(mappedEntry + sizeof(MultifileHeader), in MultifileBlobCache()
219 fileSize - sizeof(MultifileHeader))) { in MultifileBlobCache()
321 size_t fileSize = sizeof(MultifileHeader) + keySize + valueSize; in set()
334 android::MultifileHeader header = {kMultifileMagic, kCrcPlaceholder, keySize, valueSize}; in set()
336 sizeof(android::MultifileHeader)); in set()
338 memcpy(static_cast<void*>(buffer + sizeof(MultifileHeader)), static_cast<const void*>(key), in set()
340 memcpy(static_cast<void*>(buffer + sizeof(MultifileHeader) + keySize), in set()
477 MultifileHeader* header = reinterpret_cast<MultifileHeader*>(cacheEntry); in get()
487 uint8_t* cachedKey = cacheEntry + sizeof(MultifileHeader); in get()
496 uint8_t* cachedValue = cacheEntry + (keySize + sizeof(MultifileHeader)); in get()
842 MultifileHeader* header = reinterpret_cast<MultifileHeader*>(buffer); in processTask()
844 crc32c(buffer + sizeof(MultifileHeader), bufferSize - sizeof(MultifileHeader)); in processTask()