Home
last modified time | relevance | path

Searched refs:eheader (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/opengl/libs/EGL/
DBlobCache.cpp208 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]); in flatten() local
209 eheader->mKeySize = keySize; in flatten()
210 eheader->mValueSize = valueSize; in flatten()
212 memcpy(eheader->mData, keyBlob->getData(), keySize); in flatten()
213 memcpy(eheader->mData + keySize, valueBlob->getData(), valueSize); in flatten()
218 memset(eheader->mData + keySize + valueSize, 0, totalSize - entrySize); in flatten()
262 const EntryHeader* eheader = reinterpret_cast<const EntryHeader*>( in unflatten() local
264 size_t keySize = eheader->mKeySize; in unflatten()
265 size_t valueSize = eheader->mValueSize; in unflatten()
275 const uint8_t* data = eheader->mData; in unflatten()
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache.cpp262 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]); in flatten() local
263 eheader->mKeySize = keySize; in flatten()
264 eheader->mValueSize = valueSize; in flatten()
266 memcpy(eheader->mData, keyBlob->getData(), keySize); in flatten()
267 memcpy(eheader->mData + keySize, valueBlob->getData(), valueSize); in flatten()
272 memset(eheader->mData + keySize + valueSize, 0, totalSize - entrySize); in flatten()
316 const EntryHeader* eheader = reinterpret_cast<const EntryHeader*>( in unflatten() local
318 size_t keySize = eheader->mKeySize; in unflatten()
319 size_t valueSize = eheader->mValueSize; in unflatten()
329 const uint8_t* data = eheader->mData; in unflatten()