Home
last modified time | relevance | path

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

1234

/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/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/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/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/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/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/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/icu/icu4c/source/test/intltest/
Ddcfmtest.cpp496 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/
Deas_wavefile.c518 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/
Dbenchmark.c65 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/
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/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/lz4/programs/
Dbench.c434 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/
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()
DEUCTool.java45 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/
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()
/external/skia/src/ports/
DSkOSFile_win.cpp92 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()
DSkOSFile_posix.cpp88 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/skqp/src/ports/
DSkOSFile_win.cpp92 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()
DSkOSFile_posix.cpp88 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/
DHashCon.cpp211 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()

1234