Lines Matching defs:size
192 the volume sector size.
193 An application can obtain a volume sector size by calling the GetDiskFreeSpace.
197 The size of the file does not increase until you call the SetEndOfFile, WriteFile, or WriteFileEx function.
269 // maybe we must decrease kClusterSize to 1 << 12, if we want correct size at tail
283 // processed size for latest block for "PhysicalDrive0" is 0.
347 GetPartitionInfo == GeometryEx : corrrect size? (includes tail)
350 Size correction is slow and block size (kClusterSize) must be small?
353 MyGetDiskFreeSpace : Size of NTFS clusters. Same size can be calculated after correction
354 GetPartitionInfo : size of partition data: NTFS clusters + TAIL; TAIL contains extra empty sectors and copy of first sector of NTFS
355 Geometry / CdRomGeometry / GeometryEx : size of HDD (not that partition)
358 MyGetDiskFreeSpace : correct size. Same size can be calculated after correction
359 Geometry == CdRomGeometry : smaller than corrrect size
360 GetPartitionInfo == GeometryEx : larger than corrrect size
363 Geometry : correct size.
462 bool CInFile::Read1(void *data, UInt32 size, UInt32 &processedSize) throw()
465 const bool res = BOOLToBool(::ReadFile(_handle, data, size, &processedLoc, NULL));
470 bool CInFile::ReadPart(void *data, UInt32 size, UInt32 &processedSize) throw()
472 if (size > kChunkSizeMax)
473 size = kChunkSizeMax;
474 return Read1(data, size, processedSize);
477 bool CInFile::Read(void *data, UInt32 size, UInt32 &processedSize) throw()
483 const bool res = ReadPart(data, size, processedLoc);
490 size -= processedLoc;
492 while (size > 0);
496 bool CInFile::ReadFull(void *data, size_t size, size_t &processedSize) throw()
502 const UInt32 sizeLoc = (size > kChunkSizeMax ? (UInt32)kChunkSizeMax : (UInt32)size);
510 size -= processedLoc;
512 while (size > 0);
538 bool COutFile::WritePart(const void *data, UInt32 size, UInt32 &processedSize) throw()
540 if (size > kChunkSizeMax)
541 size = kChunkSizeMax;
543 bool res = BOOLToBool(::WriteFile(_handle, data, size, &processedLoc, NULL));
548 bool COutFile::Write(const void *data, UInt32 size, UInt32 &processedSize) throw()
554 const bool res = WritePart(data, size, processedLoc);
561 size -= processedLoc;
563 while (size != 0);
567 bool COutFile::WriteFull(const void *data, size_t size) throw()
572 const UInt32 sizeCur = (size > kChunkSizeMax ? kChunkSizeMax : (UInt32)size);
576 return (size == 0);
578 size -= processedLoc;
580 while (size != 0);
746 // we can read "/sys/block/sda/size" "/sys/block/sda/sda1/size" - partition
749 // in block size
752 int CFileBase::GetDeviceSize_InBytes(UInt64 &size)
754 size = 0;
758 size = numBlocks; // another blockSize s possible?
759 printf("\nGetDeviceSize_InBytes res = %d, size = %lld\n", res, (long long)size);
772 ssize_t CInFile::read_part(void *data, size_t size) throw()
774 if (size > kChunkSizeMax)
775 size = kChunkSizeMax;
776 return ::read(_handle, data, size);
779 bool CInFile::ReadFull(void *data, size_t size, size_t &processed) throw()
784 const ssize_t res = read_part(data, size);
790 size -= (size_t)res;
793 while (size > 0);
819 ssize_t COutFile::write_part(const void *data, size_t size) throw()
821 if (size > kChunkSizeMax)
822 size = kChunkSizeMax;
823 return ::write(_handle, data, size);
826 ssize_t COutFile::write_full(const void *data, size_t size, size_t &processed) throw()
831 const ssize_t res = write_part(data, size);
837 size -= (size_t)res;
840 while (size > 0);