Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 25 of 70) sorted by relevance

123

/third_party/skia/src/utils/win/
DSkDWriteFontFileStream.cpp39 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/flutter/skia/src/utils/win/
DSkDWriteFontFileStream.cpp39 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 …]
/third_party/lz4/tests/
DabiTest.c154 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()
DroundTripTest.c182 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/flutter/skia/third_party/externals/icu/source/samples/layout/
DUnicodeReader.cpp33 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/
DUnicodeReader.cpp33 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/skia/third_party/externals/icu/source/samples/layout/
DUnicodeReader.cpp33 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/
DscriptInfo.ts34 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/flutter/skia/third_party/externals/icu/source/tools/gencfu/
Dgencfu.cpp306 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/
Dgencfu.cpp306 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/icu/source/tools/gencfu/
Dgencfu.cpp306 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/flutter/skia/third_party/externals/dawn/src/fuzzers/
DStandaloneFuzzerMain.cpp50 size_t fileSize = static_cast<size_t>(tellFileSize); in main() local
51 data.resize(fileSize); in main()
53 size_t bytesRead = fread(data.data(), sizeof(char), fileSize, file); in main()
55 if (bytesRead != fileSize) { in main()
/third_party/skia/third_party/externals/dawn/src/fuzzers/
DStandaloneFuzzerMain.cpp56 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/skia/third_party/externals/icu/source/tools/toolutil/
Dpkg_gencmn.cpp86 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/flutter/skia/third_party/externals/icu/source/tools/toolutil/
Dpkg_gencmn.cpp86 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/icu/icu4c/source/tools/toolutil/
Dpkg_gencmn.cpp86 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/node/deps/icu-small/source/tools/toolutil/
Dpkg_gencmn.cpp86 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/typescript/src/testRunner/unittests/tsserver/events/
DprojectLanguageServiceState.ts59 fileSize: server.maxProgramSizeForNonTsFiles + 1
64 fileSize: server.maxProgramSizeForNonTsFiles + 100
82 …ile size exceeded limit (${f1.content.length + f2.fileSize!}). Largest files: ${f2.path}:${f2.file…
DlargeFileReferenced.ts12 fileSize: server.maxFileSize + 1
30 … data: { file: largeFile.path, fileSize: largeFile.fileSize, maxFileSize: server.maxFileSize }
/third_party/icu/icu4c/source/test/intltest/
Ddcfmtest.cpp516 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()
/third_party/skia/third_party/externals/d3d12allocator/src/
DCommon.cpp29 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/
Dbenchmark.c65 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/node/test/parallel/
Dtest-fs-read-stream.js39 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/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/
DBIG5Tool.java45 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()
/third_party/icu/icu4c/source/test/thaitest/
Dthaitest.cpp310 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()

123