string_for_size
const char* string_for_size(double size, char* string, size_t stringSize);
using BPrivate::string_for_size;
string_for_size(size, buffer, 256);
string_for_size(used, usedBuffer, 128),
string_for_size(total, totalBuffer, 128));
string_for_size(value, buffer, sizeof(buffer));
fSize = string_for_size(device.Size(), buffer, sizeof(buffer));
*text = string_for_size(size, buffer, sizeof(buffer));
string_for_size(f->size, tmp, sizeof(tmp));
string_for_size(volCapacity, label, sizeof(label));
string_for_size(info->size, label, sizeof(label));
string_for_size(targetbytes, currentBuffer, 16),
string_for_size(sourcesize, maximumBuffer, 16));
SetField(new BStringField(string_for_size(partition->Size(), size,
SetField(new BStringField(string_for_size(volume.FreeBytes(), size,
SetField(new BStringField(string_for_size(size, sizeString,
string_for_size(fStartOffset, buffer, sizeof(buffer)));
string_for_size(fEndOffset, buffer, sizeof(buffer)));
return string_for_size(Size(), fStatusLabel, sizeof(fStatusLabel));
printf("\tSize(): %s\n", string_for_size(partition->Size(), size,
printf("\tContentSize(): %s\n", string_for_size(partition->ContentSize(),
return string_for_size(fSize, buffer, sizeof(buffer));
string_for_size(fSize, string, stringSize);
string_for_size(size, string, stringSize);
string_for_size(partition->Size(), size, sizeof(size));
string_for_size(bytes, size, sizeof(size));
string_for_size(size, sizeString, sizeof(sizeString));
string_for_size(fCommittedMemory * 1024.0, infos, sizeof(infos));
string_for_size(fCachedMemory * 1024.0, infos, sizeof(infos));
string_for_size(99999999.9, buffer, sizeof(buffer));
string_for_size(fWriteMemory * 1024.0, infos, sizeof(infos));
string_for_size(fAllMemory * 1024.0, infos, sizeof(infos));
BString currentSize = string_for_size((double)fCurrentSize, sizeBuffer,
= string_for_size((double)fExpectedSize, sizeBuffer, sizeof(sizeBuffer));
buffer.ReplaceFirst("%rate%", string_for_size(fBytesPerSecond,
buffer = string_for_size(fBytesPerSecond, sizeBuffer,
string_for_size(disk.NumBlocks() * disk.BlockSize(), buffer,
string_for_size(disk.BlockBitmap()->UsedBlocks() * disk.BlockSize(),
string_for_size(disk.BlockBitmap()->FreeBlocks() * disk.BlockSize(),
string_for_size(disk.BlockSize() * size, buffer, sizeof(buffer));
string_for_size(trimData.trimmed_size, trimmedSize, 128);
string_for_size(bytes, byteBuffer, sizeof(byteBuffer)),
string_for_size(totalBytes, totalBuffer, sizeof(totalBuffer)),
string_for_size(fLastBytes, byteBuffer, sizeof(byteBuffer)));
BPrivate::string_for_size((int64)info.max_pages * B_PAGE_SIZE,
BPrivate::string_for_size((int64)info.used_pages * B_PAGE_SIZE,
question.ReplaceAll("%size", string_for_size(totalSize, buffer, sizeof(buffer)));
string_for_size((double)fSizeProcessed, sizeBuffer,
string_for_size((double)fTotalSize, sizeBuffer,
string_for_size(fBytesPerSecond, sizeBuffer, sizeof(sizeBuffer)));
string_for_size(fBytesPerSecond, sizeBuffer, sizeof(sizeBuffer)));
BString buffer = string_for_size(value, sizeBuffer, sizeof(sizeBuffer));
string_for_size(capacity, sizeStr, sizeof(sizeStr));
string_for_size(capacity - fFreeBytes, sizeStr, sizeof(sizeStr));
string_for_size(fFreeBytes, sizeStr, sizeof(sizeStr));
result << string_for_size((double)size, sizeBuffer, sizeof(sizeBuffer));
string_for_size(stats.send.bytes, buffer, sizeof(buffer));
string_for_size(stats.receive.bytes, buffer, sizeof(buffer));
minLabel << string_for_size(minSize, sizeStr, sizeof(sizeStr));
maxLabel << string_for_size(safeSpace, sizeStr, sizeof(sizeStr));
BString swapSizeStr = string_for_size(currentSwapSize, sizeStr,
BString swapUsedStr = string_for_size(currentSwapUsed, sizeStr,
return string_for_size(Value() * kMegaByte, fText, sizeof(fText));