Lines Matching refs:fileSize
37 size_t fileSize = this->getLength(); in read() local
39 if (fPos + size > fileSize) { in read()
40 size_t skipped = fileSize - fPos; in read()
41 fPos = fileSize; in read()
60 size_t fileSize = this->getLength(); in read() local
61 if (fPos + size <= fileSize) { in read()
66 size_t read = fileSize - fPos; in read()
71 fPos = fileSize; in read()
126 UINT64 fileSize; in getMemoryBase() local
127 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase()
128 HRNM(fFontFileStream->ReadFileFragment(&fLockedMemory, 0, fileSize, &fFragmentLock), in getMemoryBase()
178 UINT64 fileSize; in ReadFileFragment() local
179 this->GetFileSize(&fileSize); in ReadFileFragment()
180 if (fileOffset > fileSize || fragmentSize > fileSize - fileOffset) { in ReadFileFragment()
223 HRESULT STDMETHODCALLTYPE SkDWriteFontFileStreamWrapper::GetFileSize(UINT64* fileSize) { in GetFileSize() argument
224 *fileSize = fStream->getLength(); in GetFileSize()