/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/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/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/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/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/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/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/icu/icu4c/source/test/intltest/ |
D | dcfmtest.cpp | 496 int32_t fileSize; in ReadAndConvertFile() local 501 fileSize = ftell(f); in ReadAndConvertFile() 502 fileBuf = new char[fileSize]; in ReadAndConvertFile() 504 amtRead = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile() 505 if (amtRead != fileSize || fileSize <= 0) { in ReadAndConvertFile() 519 if (fileSize<3 || uprv_strncmp(fileBuf, "\xEF\xBB\xBF", 3) != 0) { in ReadAndConvertFile()
|
/external/sonivox/arm-wt-22k/lib_src/ |
D | eas_wavefile.c | 518 EAS_U32 fileSize; in WaveParseHeader() local 547 …if ((result = EAS_HWGetDWord(pEASData->hwInstData, fileHandle, &fileSize, EAS_FALSE)) != EAS_FALSE) in WaveParseHeader() 565 if (fileSize== FILE_SIZE_STREAMING) in WaveParseHeader() 568 fileSize = 0x7fffffff; in WaveParseHeader() 574 fileSize -= 4; in WaveParseHeader() 695 fileSize -= 8; in WaveParseHeader() 702 if (size >= fileSize) in WaveParseHeader() 704 if (size > fileSize) in WaveParseHeader() 711 fileSize -= size; in WaveParseHeader()
|
/external/expat/tests/benchmark/ |
D | benchmark.c | 65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 104 fileSize = fread (XMLBuf, sizeof (char), fileAttr.st_size, fd); in main() 113 XMLBufEnd = XMLBuf + fileSize; in main()
|
/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/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/lz4/programs/ |
D | bench.c | 434 U64 fileSize = UTIL_getFileSize(fileNamesTable[n]); in BMK_loadFiles() local 443 if (fileSize > bufferSize-pos) { /* buffer too small - stop after this file */ in BMK_loadFiles() 444 fileSize = bufferSize-pos; in BMK_loadFiles() 447 { size_t const readSize = fread(((char*)buffer)+pos, 1, (size_t)fileSize, f); in BMK_loadFiles() 448 if (readSize != (size_t)fileSize) EXM_THROW(11, "could not read %s", fileNamesTable[n]); in BMK_loadFiles() 450 fileSizes[n] = (size_t)fileSize; in BMK_loadFiles() 451 totalSize += (size_t)fileSize; in BMK_loadFiles()
|
/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()
|
D | EUCTool.java | 45 int fileSize; field in EUCTool 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()
|
/external/skqp/src/ports/ |
D | SkOSFile_win.cpp | 92 LARGE_INTEGER fileSize; in sk_fdmmap() local 93 if (0 == GetFileSizeEx(file, &fileSize)) { in sk_fdmmap() 97 if (!SkTFitsIn<size_t>(fileSize.QuadPart)) { in sk_fdmmap() 114 *length = static_cast<size_t>(fileSize.QuadPart); in sk_fdmmap()
|
/external/skia/src/ports/ |
D | SkOSFile_win.cpp | 92 LARGE_INTEGER fileSize; in sk_fdmmap() local 93 if (0 == GetFileSizeEx(file, &fileSize)) { in sk_fdmmap() 97 if (!SkTFitsIn<size_t>(fileSize.QuadPart)) { in sk_fdmmap() 114 *length = static_cast<size_t>(fileSize.QuadPart); in sk_fdmmap()
|
D | SkOSFile_posix.cpp | 88 size_t fileSize = static_cast<size_t>(status.st_size); in sk_fdmmap() local 90 void* addr = mmap(nullptr, fileSize, PROT_READ, MAP_PRIVATE, fd, 0); in sk_fdmmap() 95 *size = fileSize; in sk_fdmmap()
|
/external/lzma/CPP/7zip/UI/Console/ |
D | HashCon.cpp | 211 void CHashCallbackConsole::PrintResultLine(UInt64 fileSize, in PrintResultLine() argument 241 ConvertUInt64ToString(fileSize, p); in PrintResultLine() 262 HRESULT CHashCallbackConsole::SetOperationResult(UInt64 fileSize, const CHashBundle &hb, bool showH… in SetOperationResult() argument 266 PrintResultLine(fileSize, hb.Hashers, k_HashCalc_Index_Current, showHash); in SetOperationResult()
|
/external/lzma/C/ |
D | Lzma2Enc.c | 242 UInt64 fileSize; in Lzma2EncProps_Normalize() local 287 fileSize = p->lzmaProps.reduceSize; in Lzma2EncProps_Normalize() 291 && (p->blockSize < fileSize || fileSize == (UInt64)(Int64)-1)) in Lzma2EncProps_Normalize() 296 p->lzmaProps.reduceSize = fileSize; in Lzma2EncProps_Normalize() 326 if (t2 > 1 && fileSize != (UInt64)(Int64)-1) in Lzma2EncProps_Normalize() 328 UInt64 numBlocks = fileSize / p->blockSize; in Lzma2EncProps_Normalize() 329 if (numBlocks * p->blockSize != fileSize) in Lzma2EncProps_Normalize()
|