Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 25 of 556) sorted by relevance

12345678910>>...23

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/
H A DStaticFileHandler.cs188 if (fileLength <= 0) { in GetNextRange()
202 if (length > fileLength) { in GetNextRange()
209 offset = fileLength - length; in GetNextRange()
231 length = fileLength - offset; in GetNextRange()
236 if (endPos > fileLength - 1) { in GetNextRange()
237 endPos = fileLength - 1; in GetNextRange()
340 if (fileLength <= 0) { in ProcessRangeRequest()
484 long fileLength; in ProcessRequestInternal()
532 fileLength = fileInfo.Length; in ProcessRequestInternal()
539 fileLength, in ProcessRequestInternal()
[all …]
/dports/math/jts/jts-jts-1.18.1/modules/app/src/main/java/org/locationtech/jtstest/testbuilder/io/shapefile/
H A DShapefileHeader.java42 public int fileLength = -1; field in ShapefileHeader
60 fileLength = file.readIntBE(); in ShapefileHeader()
92 fileLength = 0; in ShapefileHeader()
94 fileLength+=handle.getLength(geometries.getGeometryN(i)); in ShapefileHeader()
95 fileLength+=4;//for each header in ShapefileHeader()
97 fileLength+=50;//space used by this, the main header in ShapefileHeader()
101 public void setFileLength(int fileLength){ in setFileLength() argument
102 this.fileLength = fileLength; in setFileLength()
118 …String res = new String("Sf-->type "+fileCode+" size "+fileLength+" version "+ version + " Shape T… in toString()
/dports/java/berkeley-db/je-6.2.31/src/com/sleepycat/je/rep/impl/networkRestore/
H A DProtocol.java284 long fileLength, in FileInfoResp() argument
287 super(fileName, fileLength, lastModifiedTime); in FileInfoResp()
304 fileLength, in wireFormat()
328 protected final long fileLength; field in Protocol.FileStart
332 long fileLength, in FileStart() argument
336 this.fileLength = fileLength; in FileStart()
342 fileLength = LogUtils.readLong(buffer); in FileStart()
353 return wireFormat(fileName, fileLength, lastModifiedTime); in wireFormat()
357 return fileLength; in getFileLength()
373 long fileLength, in FileEnd() argument
[all …]
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/mount/
H A Dchunk_locator.h36 uint64_t fileLength; member
42 fileLength(0) { in ChunkLocationInfo()
48 const uint64_t fileLength, in ChunkLocationInfo()
52 fileLength(fileLength), in ChunkLocationInfo()
103 void updateFileLength(uint64_t fileLength) { in updateFileLength() argument
104 locationInfo_. fileLength = fileLength; in updateFileLength()
H A Dchunk_locator.cc47 uint64_t fileLength; in locateChunk() local
52 uint8_t status = fs_readchunk(inode, index, &fileLength, &chunkId, &version, in locateChunk()
55 uint8_t status = fs_lizreadchunk(locations, chunkId, version, fileLength, inode, index); in locateChunk()
85 cache_ = std::make_shared<ChunkLocationInfo>(chunkId, version, fileLength, locations); in locateChunk()
97 uint64_t oldFileLength = locationInfo_.fileLength; in locateAndLockChunk()
99 uint8_t status = fs_lizwritechunk(inode, index, lockId_, locationInfo_.fileLength, in locateAndLockChunk()
115 locationInfo_.fileLength = oldFileLength; in locateAndLockChunk()
123 inode_, locationInfo_.fileLength); in unlockChunk()
/dports/devel/staf/src/staf/test/
H A Dtestcodepage2.cpp69 unsigned int fileLength = (unsigned int)inFile.tellg(); in main() local
73 STAFRefPtr<char> buffer(new char[fileLength + 1], STAFRefPtr<char>::INIT, in main()
77 inFile.read(buffer, fileLength); in main()
79 buffer[fileLength] = 0; in main()
83 for (unsigned int x = 0; x < fileLength; ++x) in main()
92 STAFString testString(buffer, fileLength); in main()
109 STAFString testString(buffer, fileLength, STAFString::kUTF8); in main()
/dports/math/asymptote/asymptote-2.67/prc/PRCTools/
H A Dinflation.cc30 int decompress(char* inb, int fileLength, char* &outb) in decompress() argument
39 strm.avail_in = fileLength; in decompress()
81 int fileLength = input.tellg(); in decompress() local
84 char *inb = new char[fileLength]; in decompress()
85 input.read(inb,fileLength); in decompress()
87 int code = decompress(inb,fileLength,result); in decompress()
/dports/print/texlive-base/texlive-20150521-source/utils/asymptote/prc/PRCTools/
H A Dinflation.cc30 int decompress(char* inb, int fileLength, char* &outb) in decompress() argument
39 strm.avail_in = fileLength; in decompress()
81 int fileLength = input.tellg(); in decompress() local
84 char *inb = new char[fileLength]; in decompress()
85 input.read(inb,fileLength); in decompress()
87 int code = decompress(inb,fileLength,result); in decompress()
/dports/math/vtk8/VTK-8.2.0/IO/Geometry/
H A DvtkParticleReader.cxx288 size_t fileLength = this->File->tellg(); in DetermineFileType() local
289 if ( fileLength == 0 ) in DetermineFileType()
302 size_t sampleSize = fileLength < 5000 ? fileLength: 5000; in DetermineFileType()
377 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileDouble() local
392 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileDouble()
402 this->DoProgressUpdate( bytesRead, fileLength ); in ProduceOutputFromTextFileDouble()
454 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileFloat() local
469 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileFloat()
479 this->DoProgressUpdate( bytesRead, fileLength ); in ProduceOutputFromTextFileFloat()
550 fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromBinaryFileDouble()
[all …]
/dports/math/vtk9/VTK-9.1.0/IO/Geometry/
H A DvtkParticleReader.cxx279 size_t fileLength = this->File->tellg(); in DetermineFileType() local
280 if (fileLength == 0) in DetermineFileType()
293 size_t sampleSize = fileLength < 5000 ? fileLength : 5000; in DetermineFileType()
368 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileDouble() local
383 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileDouble()
393 this->DoProgressUpdate(bytesRead, fileLength); in ProduceOutputFromTextFileDouble()
444 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileFloat() local
459 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileFloat()
469 this->DoProgressUpdate(bytesRead, fileLength); in ProduceOutputFromTextFileFloat()
537 fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromBinaryFileDouble()
[all …]
/dports/math/vtk6/VTK-6.2.0/IO/Geometry/
H A DvtkParticleReader.cxx284 size_t fileLength = this->File->tellg(); in DetermineFileType() local
285 if ( fileLength == 0 ) in DetermineFileType()
298 size_t sampleSize = fileLength < 5000 ? fileLength: 5000; in DetermineFileType()
373 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileDouble() local
388 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileDouble()
398 this->DoProgressUpdate( bytesRead, fileLength ); in ProduceOutputFromTextFileDouble()
450 size_t fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromTextFileFloat() local
465 this->Alliquot = fileLength / quantum; in ProduceOutputFromTextFileFloat()
475 this->DoProgressUpdate( bytesRead, fileLength ); in ProduceOutputFromTextFileFloat()
546 fileLength = (unsigned long)this->File->tellg(); in ProduceOutputFromBinaryFileDouble()
[all …]
/dports/databases/hsqldb/hsqldb-2.3.4/hsqldb/src/org/hsqldb/persist/
H A DRAFile.java83 long fileLength;
185 fileLength = length();
196 if (readOnly && fileLength < position) {
210 long readLength = fileLength - filePos;
237 if (seekPosition >= fileLength) {
342 fileLength = seekPosition;
376 if (newLength <= fileLength) {
395 fileLength = file.length();
462 if (newSize > fileLength) {
467 fileLength = newSize;
[all …]
/dports/net/rsync/rsync-3.2.3/popt/
H A Dpoptconfig.c102 off_t fileLength; in poptReadConfigFile() local
108 fileLength = lseek(fd, 0, SEEK_END); in poptReadConfigFile()
109 if (fileLength == -1 || lseek(fd, 0, 0) == -1) { in poptReadConfigFile()
116 file = alloca(fileLength + 1); in poptReadConfigFile()
117 if (read(fd, (char *)file, fileLength) != fileLength) { in poptReadConfigFile()
127 dst = buf = alloca(fileLength + 1); in poptReadConfigFile()
130 end = (file + fileLength); in poptReadConfigFile()
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/popt/
H A Dpoptconfig.c101 off_t fileLength; in poptReadConfigFile() local
107 fileLength = lseek(fd, 0, SEEK_END); in poptReadConfigFile()
108 if (fileLength == -1 || lseek(fd, 0, 0) == -1) { in poptReadConfigFile()
117 file = alloca(fileLength + 1); in poptReadConfigFile()
118 if (read(fd, (char *)file, fileLength) != fileLength) { in poptReadConfigFile()
130 dst = buf = alloca(fileLength + 1); in poptReadConfigFile()
133 end = (file + fileLength); in poptReadConfigFile()
/dports/devel/distcc/distcc-3.3.5/popt/
H A Dpoptconfig.c103 off_t fileLength; in poptReadConfigFile() local
109 fileLength = lseek(fd, 0, SEEK_END); in poptReadConfigFile()
110 if (fileLength == -1 || lseek(fd, 0, 0) == -1) { in poptReadConfigFile()
119 file = alloca(fileLength + 1); in poptReadConfigFile()
120 if (read(fd, (char *)file, fileLength) != fileLength) { in poptReadConfigFile()
132 dst = buf = alloca(fileLength + 1); in poptReadConfigFile()
135 end = (file + fileLength); in poptReadConfigFile()
/dports/java/sablevm/sablevm-1.13/src/libpopt/
H A Dpoptconfig.c101 off_t fileLength; in poptReadConfigFile() local
107 fileLength = lseek(fd, 0, SEEK_END); in poptReadConfigFile()
108 if (fileLength == -1 || lseek(fd, 0, 0) == -1) { in poptReadConfigFile()
117 file = alloca(fileLength + 1); in poptReadConfigFile()
118 if (read(fd, (char *)file, fileLength) != fileLength) { in poptReadConfigFile()
130 dst = buf = alloca(fileLength + 1); in poptReadConfigFile()
133 end = (file + fileLength); in poptReadConfigFile()
/dports/math/gri/gri-2.12.23/src/popt/
H A Dpoptconfig.c76 int fileLength; in poptReadConfigFile() local
86 fileLength = lseek(fd, 0, SEEK_END); in poptReadConfigFile()
89 file = alloca(fileLength + 1); in poptReadConfigFile()
90 if ((fd = read(fd, file, fileLength)) != fileLength) { in poptReadConfigFile()
98 dst = buf = alloca(fileLength + 1); in poptReadConfigFile()
101 end = (file + fileLength); in poptReadConfigFile()
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/
H A DTestRead.java36 private void testEOF(MiniDFSCluster cluster, int fileLength) throws IOException { in testEOF() argument
38 Path path = new Path("testEOF." + fileLength); in testEOF()
39 DFSTestUtil.createFile(fs, path, fileLength, (short)1, 0xBEEFBEEF); in testEOF()
44 fis.seek(fileLength); in testEOF()
47 if (fileLength > BLOCK_SIZE) { in testEOF()
48 fis.seek(fileLength - BLOCK_SIZE + 1); in testEOF()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/FileStream/
H A DLockUnlock.cs63 public void Lock_Unlock_Successful(long fileLength, long position, long length) in Lock_Unlock_Successful() argument
66 File.WriteAllBytes(path, new byte[fileLength]); in Lock_Unlock_Successful()
78 …public void NonOverlappingRegions_Success(long fileLength, long firstPosition, long firstLength, l… in NonOverlappingRegions_Success() argument
81 File.WriteAllBytes(path, new byte[fileLength]); in NonOverlappingRegions_Success()
115 …public void OverlappingRegionsFromSameProcess_ThrowsExceptionOnWindows(long fileLength, long first… in OverlappingRegionsFromSameProcess_ThrowsExceptionOnWindows() argument
118 File.WriteAllBytes(path, new byte[fileLength]); in OverlappingRegionsFromSameProcess_ThrowsExceptionOnWindows()
141 …public void OverlappingRegionsFromSameProcess_AllowedOnUnix(long fileLength, long firstPosition, l… in OverlappingRegionsFromSameProcess_AllowedOnUnix() argument
144 File.WriteAllBytes(path, new byte[fileLength]); in OverlappingRegionsFromSameProcess_AllowedOnUnix()
165 …public void OverlappingRegionsFromOtherProcess_ThrowsException(long fileLength, long firstPosition… in OverlappingRegionsFromOtherProcess_ThrowsException() argument
168 File.WriteAllBytes(path, new byte[fileLength]); in OverlappingRegionsFromOtherProcess_ThrowsException()
/dports/devel/hadoop/hadoop-1.2.1/src/test/org/apache/hadoop/hdfs/web/
H A DTestWebHDFS.java89 static void largeFileTest(final long fileLength) throws Exception { in largeFileTest() argument
108 final Ticker t = new Ticker("WRITE", "fileLength=" + fileLength); in largeFileTest()
111 long remaining = fileLength; in largeFileTest()
113 t.tick(fileLength - remaining, "remaining=%d", remaining); in largeFileTest()
122 t.end(fileLength); in largeFileTest()
124 Assert.assertEquals(fileLength, fs.getFileStatus(p).getLen()); in largeFileTest()
127 final long largeOffset = fileLength - smallOffset; in largeFileTest()
130 verifySeek(fs, p, largeOffset, fileLength, buf, expected); in largeFileTest()
131 verifySeek(fs, p, smallOffset, fileLength, buf, expected); in largeFileTest()
133 verifyPread(fs, p, largeOffset, fileLength, buf, expected); in largeFileTest()
/dports/devel/hadoop/hadoop-1.2.1/src/hdfs/org/apache/hadoop/hdfs/protocol/
H A DLocatedBlocks.java36 private long fileLength; field in LocatedBlocks
41 fileLength = 0; in LocatedBlocks()
48 fileLength = flength; in LocatedBlocks()
78 return this.fileLength; in getFileLength()
93 this.fileLength = length; in setFileLength()
169 out.writeLong(this.fileLength); in write()
183 this.fileLength = in.readLong(); in readFields()
/dports/science/kim-api/kim-api-2.2.1/cpp/src/
H A DKIM_SharedLibrary.cpp106 fileName(NULL), fileLength(0), filePointer(NULL) in EmbeddedFile()
222 simulatorModelSpecificationFile_.fileLength in Open()
233 fl.fileLength = schemaV2->parameterFiles[i].fileLength; in Open()
243 fl.fileLength = schemaV2->metadataFiles[i].fileLength; in Open()
304 simulatorModelSpecificationFile_.fileLength in Open()
305 = schemaV1->metadataFile->fileLength; in Open()
315 fl.fileLength = schemaV1->parameterFiles[i].fileLength; in Open()
323 fl.fileLength = strlen(schemaV1->compiledWithVersion); in Open()
360 simulatorModelSpecificationFile_.fileLength = 0; in Close()
492 *parameterFileLength = (parameterFiles_[index]).fileLength; in GetParameterFile()
[all …]
/dports/net-im/jabberd/jabberd-2.7.0/storage/
H A Dstorage_fs.c212 long long fileLength; in _st_fs_get() local
258 fileLength=sb.st_size+1; /* file size plus '\0' */ in _st_fs_get()
261 log_debug(ZONE, "fileLength: %i",fileLength); in _st_fs_get()
262 dynBuf=calloc(1, fileLength); in _st_fs_get()
271 while(fgets(dynBuf, fileLength, f) != NULL) { in _st_fs_get()
375 long long fileLength; in _st_fs_delete() local
421 fileLength=sb.st_size+1; /* file size plus '\0' */ in _st_fs_delete()
424 log_debug(ZONE, "fileLength: %i",fileLength); in _st_fs_delete()
425 dynBuf=calloc(1, fileLength); in _st_fs_delete()
435 while(fgets(dynBuf, fileLength, f) != NULL) { in _st_fs_delete()
[all …]
/dports/games/scummvm-tools/scummvm-tools-2.5.0/engines/scumm/
H A Dextract_scumm_mac.cpp78 uint32 fileLength = ifp.readUint32BE(); in execute() local
90 if (fileOffset + fileLength > dataFileLength) in execute()
99 byte *buf = new byte[fileLength]; in execute()
100 ifp.read_throwsOnError(buf, fileLength); in execute()
101 ofp.write(buf, fileLength); in execute()
/dports/devel/hadoop/hadoop-1.2.1/src/core/org/apache/hadoop/fs/s3/
H A DS3InputStream.java38 private long fileLength; field in S3InputStream
63 this.fileLength += block.getLength(); in S3InputStream()
74 return (int) (fileLength - pos); in available()
79 if (targetPos > fileLength) { in seek()
97 if (pos < fileLength) { in read()
117 if (pos < fileLength) { in read()

12345678910>>...23