Home
last modified time | relevance | path

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

1234

/external/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 …]
/external/skqp/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 …]
/external/lzma/CPP/Common/
DListFileUtils.cpp37 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/
Dcommon.h80 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()
Dmultiple_simple_compression.c38 size_t const fileSize = fsize_orDie(filename); in createResources_orDie() local
41 if (fileSize > maxFileSize) maxFileSize = fileSize; in createResources_orDie()
/external/zstd/tests/fuzz/
Dregression_driver.c48 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/
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()
/external/lz4/tests/
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()
/external/zstd/tests/
DroundTripCrash.c192 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/
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()
/external/ms-tpm-20-ref/TPMCmd/Platform/src/
DNVMem.c118 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/
DextractExternal.cpp74 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/
DEASLibVst.c75 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 …]
DEASLib.c77 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/
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()
/external/lzma/CPP/7zip/Bundles/LzmaCon/
DLzmaAlone.cpp503 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/
DLzmaUtil.c136 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/
Dbenchmark.c63 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/
DCommon.cpp31 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/
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()
/external/lzma/Java/SevenZip/
DLzmaAlone.java216 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/
DMergedOutputSection.h33 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/
DFileMap.java190 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/
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()
/external/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()

1234