/external/skia/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 39 size_t fileSize = this->getLength(); in read() local 41 if (fPos + size > fileSize) { in read() 42 size_t skipped = fileSize - fPos; in read() 43 fPos = fileSize; in read() 62 size_t fileSize = this->getLength(); in read() local 63 if (fPos + size <= fileSize) { in read() 68 size_t read = fileSize - fPos; in read() 73 fPos = fileSize; in read() 128 UINT64 fileSize; in getMemoryBase() local 129 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase() [all …]
|
/external/skqp/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 39 size_t fileSize = this->getLength(); in read() local 41 if (fPos + size > fileSize) { in read() 42 size_t skipped = fileSize - fPos; in read() 43 fPos = fileSize; in read() 62 size_t fileSize = this->getLength(); in read() local 63 if (fPos + size <= fileSize) { in read() 68 size_t read = fileSize - fPos; in read() 73 fPos = fileSize; in read() 128 UINT64 fileSize; in getMemoryBase() local 129 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase() [all …]
|
/external/lzma/CPP/Common/ |
D | ListFileUtils.cpp | 37 UInt64 fileSize; in ReadNamesFromListFile2() local 38 if (!file.GetLength(fileSize)) in ReadNamesFromListFile2() 43 if (fileSize >= ((UInt32)1 << 31) - 32) in ReadNamesFromListFile2() 48 if ((fileSize & 1) != 0) in ReadNamesFromListFile2() 50 CByteArr buf((size_t)fileSize); in ReadNamesFromListFile2() 52 if (!file.Read(buf, (UInt32)fileSize, processed)) in ReadNamesFromListFile2() 57 if (processed != fileSize) in ReadNamesFromListFile2() 60 unsigned num = (unsigned)fileSize / 2; in ReadNamesFromListFile2() 84 char *p = s.GetBuf((unsigned)fileSize); in ReadNamesFromListFile2() 86 if (!file.Read(p, (UInt32)fileSize, processed)) in ReadNamesFromListFile2() [all …]
|
/external/zstd/examples/ |
D | common.h | 80 off_t const fileSize = st.st_size; in fsize_orDie() local 81 size_t const size = (size_t)fileSize; in fsize_orDie() 86 if ((fileSize < 0) || (fileSize != (off_t)size)) { in fsize_orDie() 182 size_t const fileSize = fsize_orDie(fileName); in loadFile_orDie() local 183 CHECK(fileSize <= bufferSize, "File too large!"); in loadFile_orDie() 186 size_t const readSize = fread(buffer, 1, fileSize, inFile); in loadFile_orDie() 187 if (readSize != (size_t)fileSize) { in loadFile_orDie() 192 return fileSize; in loadFile_orDie() 205 size_t const fileSize = fsize_orDie(fileName); in mallocAndLoadFile_orDie() local 206 *bufferSize = fileSize; in mallocAndLoadFile_orDie()
|
D | multiple_simple_compression.c | 38 size_t const fileSize = fsize_orDie(filename); in createResources_orDie() local 41 if (fileSize > maxFileSize) maxFileSize = fileSize; in createResources_orDie()
|
/external/zstd/tests/fuzz/ |
D | regression_driver.c | 48 size_t const fileSize = UTIL_getFileSize(fileName); in main() local 60 FUZZ_ASSERT_MSG(fileSize <= kMaxFileSize, fileName); in main() 62 if (fileSize > bufferSize) { in main() 64 buffer = (uint8_t *)malloc(fileSize); in main() 66 bufferSize = fileSize; in main() 72 readSize = fread(buffer, 1, fileSize, file); in main() 73 FUZZ_ASSERT_MSG(readSize == fileSize, fileName); in main() 77 LLVMFuzzerTestOneInput(buffer, fileSize); in main()
|
/external/icu/icu4c/source/samples/layout/ |
D | UnicodeReader.cpp | 33 int32_t fileSize; in readFile() local 51 fileSize = ftell(f); in readFile() 85 fileSize -= signatureLength; in readFile() 87 byteBuffer = new char[fileSize]; in readFile() 96 fread(byteBuffer, sizeof(char), fileSize, f); in readFile() 106 UnicodeString myText(byteBuffer, fileSize, cp); in readFile()
|
/external/lz4/tests/ |
D | roundTripTest.c | 182 static void loadFile(void* buffer, const char* fileName, size_t fileSize) in loadFile() argument 193 { size_t const readSize = fread(buffer, 1, fileSize, f); in loadFile() 194 if (readSize != fileSize) { in loadFile() 204 size_t const fileSize = getFileSize(fileName); in fileCheck() local 205 void* const buffer = malloc(fileSize + !fileSize /* avoid 0 */); in fileCheck() 210 loadFile(buffer, fileName, fileSize); in fileCheck() 211 roundTripCheck(buffer, fileSize, clevel); in fileCheck()
|
/external/zstd/tests/ |
D | roundTripCrash.c | 192 static void loadFile(void* buffer, const char* fileName, size_t fileSize) in loadFile() argument 203 { size_t const readSize = fread(buffer, 1, fileSize, f); in loadFile() 204 if (readSize != fileSize) { in loadFile() 214 size_t const fileSize = getFileSize(fileName); in fileCheck() local 215 void* const buffer = malloc(fileSize + !fileSize /* avoid 0 */); in fileCheck() 220 loadFile(buffer, fileName, fileSize); in fileCheck() 221 roundTripCheck(buffer, fileSize, testCCtxParams); in fileCheck()
|
/external/icu/icu4c/source/tools/gencfu/ |
D | gencfu.cpp | 306 long fileSize; in readFile() local 314 fileSize = ftell(file); in readFile() 316 result = new char[fileSize+10]; in readFile() 322 long t = static_cast<long>(fread(result, 1, fileSize, file)); in readFile() 323 if (t != fileSize) { in readFile() 328 result[fileSize]=0; in readFile() 329 *len = static_cast<int32_t>(fileSize); in readFile()
|
/external/ms-tpm-20-ref/TPMCmd/Platform/src/ |
D | NVMem.c | 118 long fileSize; in NvFileSize() local 126 fileSize = ftell(s_NvFile); in NvFileSize() 127 assert(fileSize >= 0); in NvFileSize() 141 return fileSize; in NvFileSize() 192 long fileSize = NvFileSize(SEEK_SET); // get the file size and leave the in _plat__NVEnable() local 196 if (NV_MEMORY_SIZE == fileSize) in _plat__NVEnable()
|
/external/llvm-project/openmp/runtime/src/ |
D | extractExternal.cpp | 74 streampos fileSize = raw.tellg(); in getBuf() local 75 if (fileSize < 0) in getBuf() 77 char *buf = new char[fileSize]; in getBuf() 79 raw.read(buf, fileSize); in getBuf() 80 return pair<const char *, streamsize>(buf, fileSize); in getBuf() 239 streampos fileSize; in computeExternalSymbols() local 245 fileSize = f.tellg(); in computeExternalSymbols() 254 fileName, (unsigned long)fileSize, symTabStart, symNEntries); in computeExternalSymbols() 258 if (f.tellg() != fileSize) in computeExternalSymbols() 294 streampos fileSize; in hideSymbols() local [all …]
|
/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/ |
D | EASLibVst.c | 75 EAS_I32 fileSize; member 82 EAS_I32 fileSize; member 524 if ((result = EAS_HWFileLength(hwInstData, file, &file->fileSize)) != EAS_SUCCESS) in EAS_HWOpenFile() 795 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek() 841 if ((temp < 0) || (temp > file->fileSize)) in EAS_HWFileSeekOfs() 917 dupfile->fileSize = file->fileSize; in EAS_HWDupHandle() 1037 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile() 1043 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile() 1051 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile() 1096 count = file->fileSize - file->filePos; in EAS_HWReadFile() [all …]
|
D | EASLib.c | 77 EAS_I32 fileSize; member 84 EAS_I32 fileSize; member 829 if ((result = EAS_HWFileLength(hwInstData, file, &file->fileSize)) != EAS_SUCCESS) in EAS_HWOpenFile() 1100 if ((position < 0) || (position > file->fileSize)) in EAS_HWFileSeek() 1146 if ((temp < 0) || (temp > file->fileSize)) in EAS_HWFileSeekOfs() 1222 dupfile->fileSize = file->fileSize; in EAS_HWDupHandle() 1342 if ((file->fileSize = ftell(ioFile)) == -1L) in EAS_HWOpenFile() 1348 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); in EAS_HWOpenFile() 1356 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); in EAS_HWOpenFile() 1401 count = file->fileSize - file->filePos; in EAS_HWReadFile() [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | pkg_gencmn.cpp | 86 uint32_t basenameLength, basenameOffset, fileSize, fileOffset; member 232 fileOffset+=(files[i].fileSize+15)&~0xf; in createCommonDataFile() 271 …("adding %s (%ld byte%s)\n", files[i].pathname, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile() 289 length=files[i].fileSize; in createCommonDataFile() 291 if (nread != files[i].fileSize) { in createCommonDataFile() 292 …ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? … in createCommonDataFile() 469 files[fileCount].fileSize=length; in addFile()
|
/external/lzma/CPP/7zip/Bundles/LzmaCon/ |
D | LzmaAlone.cpp | 503 UInt64 fileSize = 0; in main2() local 507 if (!inStreamSpec->File.GetLength(fileSize)) in main2() 511 Print_Size("Input size: ", fileSize); in main2() 521 if ((UInt32)((UInt32)1 << i) >= fileSize) in main2() 537 size_t inSize = (size_t)fileSize; in main2() 539 if (inSize != fileSize) in main2() 560 UInt64 outSize64 = fileSize / 20 * 21 + (1 << 16); in main2() 602 if (inSize != (size_t)fileSize) in main2() 708 fileSize = (UInt64)(Int64)-1; in main2() 715 temp[i]= (Byte)(fileSize >> (8 * i)); in main2() [all …]
|
/external/lzma/C/Util/Lzma/ |
D | LzmaUtil.c | 136 static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 fileSize, char *rs) in Encode() argument 159 header[headerSize++] = (Byte)(fileSize >> (8 * i)); in Encode() 223 UInt64 fileSize; in main2() local 224 File_GetLength(&inStream.file, &fileSize); in main2() 225 res = Encode(&outStream.vt, &inStream.vt, fileSize, rs); in main2()
|
/external/expat/tests/benchmark/ |
D | benchmark.c | 63 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 100 fileSize = fread(XMLBuf, sizeof(char), fileAttr.st_size, fd); in main() 109 XMLBufEnd = XMLBuf + fileSize; in main()
|
/external/angle/third_party/vulkan_memory_allocator/src/ |
D | Common.cpp | 31 size_t fileSize = (size_t)file.tellg(); in ReadFile() local 32 if(fileSize > 0) in ReadFile() 34 out.resize(fileSize); in ReadFile() 36 file.read(out.data(), fileSize); in ReadFile()
|
/external/icu/icu4c/source/test/intltest/ |
D | dcfmtest.cpp | 516 int32_t fileSize; in ReadAndConvertFile() local 521 fileSize = ftell(f); in ReadAndConvertFile() 522 fileBuf = new char[fileSize]; in ReadAndConvertFile() 524 amtRead = static_cast<int32_t>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile() 525 if (amtRead != fileSize || fileSize <= 0) { in ReadAndConvertFile() 539 if (fileSize<3 || uprv_strncmp(fileBuf, "\xEF\xBB\xBF", 3) != 0) { in ReadAndConvertFile()
|
/external/lzma/Java/SevenZip/ |
D | LzmaAlone.java | 216 long fileSize; in main() local 218 fileSize = -1; in main() 220 fileSize = inFile.length(); in main() 222 outStream.write((int)(fileSize >>> (8 * i)) & 0xFF); in main()
|
/external/llvm-project/lld/MachO/ |
D | MergedOutputSection.h | 33 uint64_t getFileSize() const override { return fileSize; } in getFileSize() 50 uint64_t fileSize = 0; variable
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | FileMap.java | 190 long fileSize = 0; in guessOffsetFor() local 200 fileSize = entry.getCompressedSize(); in guessOffsetFor() 204 offset += fileSize; in guessOffsetFor()
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/ |
D | BIG5Tool.java | 45 int fileSize; field in BIG5Tool 119 fileSize = is.read(buf); in processDir() 122 System.out.println(" " + fileSize + " bytes."); in processDir() 291 if (nextIndex >= fileSize) { in nextByte()
|
/external/icu/icu4c/source/test/thaitest/ |
D | thaitest.cpp | 310 int32_t fileSize; in readFile() local 323 fileSize = ftell(f); in readFile() 326 bufferChars = new char[fileSize]; in readFile() 334 fread(bufferChars, sizeof(char), fileSize, f); in readFile() 343 UnicodeString myText(bufferChars, fileSize, "UTF-8"); in readFile()
|