Searched refs:bufCapacity (Results 1 – 4 of 4) sorted by relevance
/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
D | random_access_file.cpp | 81 long long RandomAccessFile::DoMMap(int32_t bufCapacity, long long offset, MmapInfo& mmapInfo) in DoMMap() argument 91 if (offset < 0 || offset > fileLength - bufCapacity) { in DoMMap() 96 mmapInfo.mmapSize = bufCapacity + mmapInfo.readMoreLen; in DoMMap() 106 …g long RandomAccessFile::ReadFileFullyFromOffset(char buf[], long long offset, int32_t bufCapacity) in ReadFileFullyFromOffset() argument 113 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset() 118 if (memcpy_s(buf, bufCapacity, mmapInfo.mapAddr + mmapInfo.readMoreLen, in ReadFileFullyFromOffset() 124 return bufCapacity; in ReadFileFullyFromOffset() 134 int32_t bufCapacity = buffer.GetCapacity(); in ReadFileFullyFromOffset() local 135 long long ret = DoMMap(bufCapacity, offset, mmapInfo); in ReadFileFullyFromOffset() 140 buffer.PutData(0, mmapInfo.mapAddr + mmapInfo.readMoreLen, bufCapacity); in ReadFileFullyFromOffset() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_file.c | 66 int32_t HapMMap(int32_t bufCapacity, int32_t offset, MmapInfo *mmapInfo, const FileRead *file) in HapMMap() argument 68 if (mmapInfo == NULL || file == NULL || bufCapacity <= 0) { in HapMMap() 75 if (offset < 0 || offset > file->len - bufCapacity) { in HapMMap() 84 mmapInfo->mmapSize = bufCapacity + mmapInfo->readMoreLen; in HapMMap()
|
/base/security/appverify/interfaces/innerkits/appverify/include/common/ |
D | random_access_file.h | 39 DLL_EXPORT long long ReadFileFullyFromOffset(char buf[], long long offset, int32_t bufCapacity); 43 long long DoMMap(int32_t bufCapacity, long long offset, MmapInfo& mmapInfo);
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
D | app_file.h | 52 int32_t HapMMap(int32_t bufCapacity, int32_t offset, MmapInfo *mmapInfo, const FileRead *file);
|