/third_party/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() 127 UINT64 fileSize; in getMemoryBase() local 128 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase() [all …]
|
/third_party/lzma/CPP/Common/ |
D | ListFileUtils.cpp | 60 UInt64 fileSize; in ReadNamesFromListFile2() local 61 if (!file.GetLength(fileSize)) in ReadNamesFromListFile2() 66 if (fileSize >= ((UInt32)1 << 31) - 32) in ReadNamesFromListFile2() 71 if ((fileSize & 1) != 0) in ReadNamesFromListFile2() 73 CByteArr buf((size_t)fileSize); in ReadNamesFromListFile2() 75 if (!My_File_Read(file, buf, (size_t)fileSize, lastError)) in ReadNamesFromListFile2() 79 const unsigned num = (unsigned)fileSize / 2; in ReadNamesFromListFile2() 103 char *p = s.GetBuf((unsigned)fileSize); in ReadNamesFromListFile2() 105 if (!My_File_Read(file, p, (size_t)fileSize, lastError)) in ReadNamesFromListFile2() 109 s.ReleaseBuf_CalcLen((unsigned)fileSize); in ReadNamesFromListFile2() [all …]
|
/third_party/lz4/tests/ |
D | abiTest.c | 154 static void loadFile(void* buffer, const char* fileName, size_t fileSize) in loadFile() argument 165 { size_t const readSize = fread(buffer, 1, fileSize, f); in loadFile() 166 if (readSize != fileSize) { in loadFile() 176 size_t const fileSize = getFileSize(fileName); in fileCheck() local 177 void* const buffer = malloc(fileSize + !fileSize /* avoid 0 */); in fileCheck() 182 loadFile(buffer, fileName, fileSize); in fileCheck() 183 roundTripCheck(buffer, fileSize); in fileCheck()
|
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()
|
/third_party/skia/third_party/externals/icu/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()
|
/third_party/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()
|
/third_party/typescript/src/server/ |
D | scriptInfo.ts | 34 private fileSize: number | undefined; property in ts.server.TextStorage 81 this.fileSize = undefined; 91 this.fileSize = undefined; 125 const { text: newText, fileSize } = this.getFileTextAndSize(tempFileName); constant 127 this.fileSize = fileSize; // NB: after reload since reload clears it 155 return !!this.fileSize 156 ? this.fileSize 207 private getFileTextAndSize(tempFileName?: string): { text: string, fileSize?: number } { 213 … const fileSize = this.host.getFileSize ? this.host.getFileSize(fileName) : getText().length; 214 if (fileSize > maxFileSize) { [all …]
|
/third_party/skia/third_party/externals/icu/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()
|
/third_party/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()
|
/third_party/skia/third_party/externals/dawn/src/fuzzers/ |
D | StandaloneFuzzerMain.cpp | 56 size_t fileSize = static_cast<size_t>(tellFileSize); in main() local 57 data.resize(fileSize); in main() 59 size_t bytesRead = fread(data.data(), sizeof(char), fileSize, file); in main() 61 if (bytesRead != fileSize) { in main()
|
/third_party/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()
|
/third_party/skia/third_party/externals/icu/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()
|
/third_party/lzma/C/ |
D | Bcj2.h | 246 #define BCJ2_ENC_GET_FileSizeField_VAL_FROM_FileSize(fileSize) \ argument 247 ((CBcj2Enc_ip_unsigned)(fileSize) - 1) 250 #define Bcj2Enc_SET_FileSize(p, fileSize) \ argument 251 (p)->fileSize64_minus1 = BCJ2_ENC_GET_FileSizeField_VAL_FROM_FileSize(fileSize);
|
/third_party/lzma/CPP/7zip/Bundles/LzmaCon/ |
D | LzmaAlone.cpp | 512 UInt64 fileSize = 0; 516 if (!inStreamSpec->GetLength(fileSize)) 520 Print_Size("Input size: ", fileSize); 530 if ((UInt32)((UInt32)1 << i) >= fileSize) 546 size_t inSize = (size_t)fileSize; 548 if (inSize != fileSize) 569 UInt64 outSize64 = fileSize / 20 * 21 + (1 << 16); 611 if (inSize != (size_t)fileSize) 717 fileSize = (UInt64)(Int64)-1; 724 temp[i]= (Byte)(fileSize >> (8 * i)); [all …]
|
/third_party/node/deps/icu-small/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()
|
/third_party/lzma/C/Util/Lzma/ |
D | LzmaUtil.c | 189 static SRes Encode(ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, UInt64 fileSize) in Encode() argument 210 header[headerSize++] = (Byte)(fileSize >> (8 * i)); in Encode() 285 UInt64 fileSize; in main() local 286 const WRes wres = File_GetLength(&inStream.file, &fileSize); in main() 289 res = Encode(&outStream.vt, &inStream.vt, fileSize); in main()
|
/third_party/skia/third_party/externals/d3d12allocator/src/ |
D | Common.cpp | 29 size_t fileSize = (size_t)file.tellg(); in ReadFile() local 30 if(fileSize > 0) in ReadFile() 32 out.resize(fileSize); in ReadFile() 34 file.read(out.data(), fileSize); in ReadFile()
|
/third_party/skia/third_party/externals/expat/expat/tests/benchmark/ |
D | benchmark.c | 65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 102 fileSize = fread(XMLBuf, sizeof(char), fileAttr.st_size, fd); in main() 111 XMLBufEnd = XMLBuf + fileSize; in main()
|
/third_party/typescript/src/testRunner/unittests/tsserver/events/ |
D | largeFileReferenced.ts | 12 fileSize: server.maxFileSize + 1 30 … data: { file: largeFile.path, fileSize: largeFile.fileSize, maxFileSize: server.maxFileSize }
|
/third_party/node/test/parallel/ |
D | test-fs-read-stream.js | 39 const fileSize = fs.statSync(fn).size; 76 assert.strictEqual(bytesRead, fileSize); 77 assert.strictEqual(file.bytesRead, fileSize); 82 assert.strictEqual(bytesRead, fileSize); 83 assert.strictEqual(file.bytesRead, fileSize);
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|