/haiku/src/kits/network/libnetservices2/ |
H A D | HttpBuffer.cpp | 44 HttpBuffer::ReadFrom(BDataIO* source, std::optional<size_t> maxSize) in ReadFrom() argument 52 if (maxSize && maxSize.value() < remainingBufferSize) in ReadFrom() 53 remainingBufferSize = maxSize.value(); in ReadFrom() 87 HttpBuffer::WriteTo(HttpTransferFunction func, std::optional<size_t> maxSize) in WriteTo() argument 93 if (maxSize.has_value() && *maxSize < size) in WriteTo() 94 size = *maxSize; in WriteTo()
|
H A D | HttpBuffer.h | 31 std::optional<size_t> maxSize = std::nullopt); 33 std::optional<size_t> maxSize = std::nullopt); 35 std::optional<size_t> maxSize = std::nullopt);
|
/haiku/src/kits/interface/ |
H A D | LayoutUtils.cpp | 162 BLayoutUtils::AlignInFrame(BRect frame, BSize maxSize, BAlignment alignment) in AlignInFrame() argument 165 if (maxSize.width < frame.Width() in AlignInFrame() 167 frame.left += (int)((frame.Width() - maxSize.width) in AlignInFrame() 169 frame.right = frame.left + maxSize.width; in AlignInFrame() 171 if (maxSize.height < frame.Height() in AlignInFrame() 173 frame.top += (int)((frame.Height() - maxSize.height) in AlignInFrame() 175 frame.bottom = frame.top + maxSize.height; in AlignInFrame() 186 BSize maxSize = view->MaxSize(); in AlignInFrame() local 191 if (maxSize.width < frame.Width() in AlignInFrame() 193 frame.OffsetBy(floorf((frame.Width() - maxSize.width) in AlignInFrame() [all …]
|
H A D | LayoutItem.cpp | 128 BSize maxSize = MaxSize(); in AlignInFrame() local 134 if (maxSize.width < frame.Width() in AlignInFrame() 136 frame.left += (int)((frame.Width() - maxSize.width) in AlignInFrame() 138 frame.right = frame.left + maxSize.width; in AlignInFrame() 146 maxSize.height = minHeight; in AlignInFrame() 149 SetFrame(BLayoutUtils::AlignInFrame(frame, maxSize, alignment)); in AlignInFrame()
|
H A D | ScrollBar.cpp | 1039 BSize maxSize; in MaxSize() local 1040 GetPreferredSize(&maxSize.width, &maxSize.height); in MaxSize() 1042 maxSize.width = B_SIZE_UNLIMITED; in MaxSize() 1044 maxSize.height = B_SIZE_UNLIMITED; in MaxSize() 1045 return BLayoutUtils::ComposeSize(ExplicitMaxSize(), maxSize); in MaxSize() 1186 float maxSize; in _UpdateThumbFrame() local 1191 maxSize = bounds.Height(); in _UpdateThumbFrame() 1194 maxSize = bounds.Width(); in _UpdateThumbFrame() 1200 maxSize -= buttonSize * 4; in _UpdateThumbFrame() 1203 maxSize -= buttonSize * 2; in _UpdateThumbFrame() [all …]
|
H A D | AbstractLayout.cpp | 69 maxSize(), in DataProxy() 89 return maxSize; in MaxSize() 94 maxSize = max; in SetMaxSize() 143 err = archive->AddSize(kSizesField, maxSize); in AddDataToArchive() 160 err = archive->FindSize(kSizesField, 1, &maxSize); in RestoreDataFromArchive() 174 BSize maxSize; member
|
/haiku/headers/os/locale/ |
H A D | NumberFormat.h | 27 ssize_t Format(char* string, size_t maxSize, const double value); 29 ssize_t Format(char* string, size_t maxSize, const int32 value); 34 ssize_t FormatMonetary(char* string, size_t maxSize, const double value); 37 ssize_t FormatPercent(char* string, size_t maxSize, const double value);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | memalign_test.cpp | 45 allocate_random_no_alignment(int32 count, size_t maxSize) in allocate_random_no_alignment() argument 50 sizes[i] = rand() % maxSize; in allocate_random_no_alignment() 77 allocate_random_fixed_alignment(int32 count, size_t maxSize, size_t alignment) in allocate_random_fixed_alignment() argument 82 sizes[i] = rand() % maxSize; in allocate_random_fixed_alignment() 111 allocate_random_random_alignment(int32 count, size_t maxSize) in allocate_random_random_alignment() argument 114 allocate_random_fixed_alignment(128, maxSize, 1 << (rand() % 18)); in allocate_random_random_alignment()
|
/haiku/src/kits/locale/ |
H A D | NumberFormat.cpp | 39 size_t maxSize, const double value); 160 size_t maxSize, const double value) in ApplyFormatter() argument 167 return strlcpy(string, fullString.String(), maxSize); in ApplyFormatter() 220 BNumberFormat::Format(char* string, size_t maxSize, const double value) in Format() argument 227 return strlcpy(string, fullString.String(), maxSize); in Format() 251 BNumberFormat::Format(char* string, size_t maxSize, const int32 value) in Format() argument 258 return strlcpy(string, fullString.String(), maxSize); in Format() 305 BNumberFormat::FormatMonetary(char* string, size_t maxSize, const double value) in FormatMonetary() argument 308 fPrivateData->GetCurrency(&fConventions), string, maxSize, value); in FormatMonetary() 321 BNumberFormat::FormatPercent(char* string, size_t maxSize, const double value) in FormatPercent() argument [all …]
|
/haiku/docs/user/locale/ |
H A D | NumberFormat.dox | 52 \fn ssize_t BNumberFormat::Format(char* string, size_t maxSize, 55 into \a string up to \a maxSize bytes in the current locale. 58 \param maxSize The maximum of bytes to copy into \a string. 67 \sa BNumberFormat::Format(char* string, size_t maxSize, 69 \sa ssize_t BNumberFormat::FormatMonetary(char* string, size_t maxSize, 99 \fn ssize_t BNumberFormat::Format(char* string, size_t maxSize, 102 into \a string up to \a maxSize bytes in the current locale. 105 \param maxSize The maximum of bytes to copy into \a string. 114 \sa BNumberFormat::Format(char* string, size_t maxSize, 116 \sa BNumberFormat::FormatMonetary(char* string, size_t maxSize, [all …]
|
/haiku/src/kits/tracker/infowindow/ |
H A D | FilePermissionsView.cpp | 126 BSize ownerRightLabelSize, groupRightLabelSize, maxSize; in FilePermissionsView() local 131 maxSize.width = std::max(ownerRightLabelSize.width, in FilePermissionsView() 133 maxSize.width = std::max(maxSize.width, in FilePermissionsView() 136 maxSize.height = std::max(ownerRightLabel->ExplicitSize().height, in FilePermissionsView() 138 maxSize.height = std::max(maxSize.height, in FilePermissionsView() 143 ownerRightLabel->SetExplicitSize(maxSize); in FilePermissionsView() 144 groupRightLabel->SetExplicitSize(maxSize); in FilePermissionsView() 145 otherRightLabel->SetExplicitSize(maxSize); in FilePermissionsView()
|
/haiku/src/kits/debugger/value/value_nodes/ |
H A D | CStringValueNode.cpp | 72 size_t maxSize = 255; in ResolvedLocationAndValue() local 80 maxSize = dynamic_cast<ArrayType*>(fType) in ResolvedLocationAndValue() 90 error = valueLoader->LoadStringValue(addressData, maxSize, valueData); in ResolvedLocationAndValue() 107 error = valueLoader->LoadStringValue(addressData, maxSize, valueData); in ResolvedLocationAndValue()
|
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | DirectoryIterator.cpp | 358 uint32 maxSize = _MaxSize(); in RemoveEntry() local 366 if (fDisplacement == maxSize) { in RemoveEntry() 370 } else if (fDisplacement > maxSize) { in RemoveEntry() 457 uint32 maxSize = _MaxSize(); in _AllocateBestEntryInBlock() local 459 uint16 bestPos = maxSize; in _AllocateBestEntryInBlock() 460 uint16 bestLength = maxSize; in _AllocateBestEntryInBlock() 461 uint16 bestRealLength = maxSize; in _AllocateBestEntryInBlock() 464 while (pos < maxSize) { in _AllocateBestEntryInBlock() 492 if (bestPos == maxSize) in _AllocateBestEntryInBlock() 561 uint32 maxSize = _MaxSize(); in _SplitIndexedBlock() local [all …]
|
H A D | HTreeEntryIterator.cpp | 106 uint32 maxSize = fBlockSize; in Init() local 108 maxSize -= sizeof(ext2_htree_tail); in Init() 110 if (fLimit != maxSize / sizeof(HTreeEntry) - fFirstEntry) { in Init() 113 (uint32)(maxSize / sizeof(HTreeEntry) - fFirstEntry), fBlockNum); in Init() 348 uint32 maxSize = fBlockSize; in InsertEntry() local 350 maxSize -= sizeof(ext2_dir_entry_tail); in InsertEntry()
|
/haiku/src/servers/syslog_daemon/ |
H A D | syslog_output.cpp | 220 int maxSize = strtol(param, NULL, 0); in init_syslog_output() local 222 maxSize *= 1024; in init_syslog_output() 224 maxSize *= 1048576; in init_syslog_output() 225 if (maxSize > 0) in init_syslog_output() 226 sLogMaxSize = maxSize; in init_syslog_output()
|
/haiku/src/kits/shared/ |
H A D | StatusView.cpp | 16 float maxSize = be_control_look->GetScrollBarWidth(); in AdoptScrollBarFontSize() local 31 if (currentSize > maxSize) in AdoptScrollBarFontSize()
|
/haiku/src/tests/kits/interface/layout/widget_layout_test/ |
H A D | TestView.cpp | 9 TestView::TestView(BSize minSize, BSize maxSize, BSize preferredSize) in TestView() argument 12 fMaxSize(maxSize), in TestView()
|
/haiku/src/kits/debugger/value/ |
H A D | ValueLoader.h | 37 size_t maxSize, void* _value); 40 size_t maxSize, BString& _value);
|
/haiku/headers/posix/ |
H A D | stdlib.h | 170 extern int mblen(const char *string, size_t maxSize); 171 extern int mbtowc(wchar_t *pwc, const char *string, size_t maxSize); 173 extern size_t mbstowcs(wchar_t *pwcs, const char *string, size_t maxSize); 174 extern size_t wcstombs(char *string, const wchar_t *pwcs, size_t maxSize); 187 extern int ptsname_r(int masterFD, char *path, size_t maxSize);
|
H A D | time.h | 94 extern size_t strftime(char *buffer, size_t maxSize, const char *format, 96 extern size_t strftime_l(char *buffer, size_t maxSize, const char *format,
|
/haiku/src/add-ons/accelerants/et6x00/ |
H A D | ProposeDisplayMode.c | 91 size_t maxSize; in createModesList() local 99 maxSize = (((MODE_COUNT * 3) * sizeof(display_mode)) + (B_PAGE_SIZE-1)) & ~(B_PAGE_SIZE-1); in createModesList() 104 B_ANY_ADDRESS, maxSize, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA); in createModesList()
|
/haiku/src/tools/fs_shell/ |
H A D | partition_support.cpp | 140 fssh_off_t maxSize = restriction->endOffset - pos; in restricted_file_restrict_io() local 141 if (size > maxSize) in restricted_file_restrict_io() 142 size = maxSize; in restricted_file_restrict_io()
|
/haiku/src/tests/kits/mail/ |
H A D | header_test.cpp | 84 parse_fields(BPositionIO& input, size_t maxSize) in parse_fields() argument 86 char* buffer = (char*)malloc(maxSize); in parse_fields() 92 ssize_t bytesRead = input.Read(buffer, maxSize); in parse_fields()
|
/haiku/src/tests/system/boot/heap/ |
H A D | heapTest.cpp | 123 random_allocations(void* array[], size_t maxSize) in random_allocations() argument 125 printf("* random allocations (up to %ld bytes)\n", maxSize); in random_allocations() 131 size_t size = size_t(rand() * 1. * maxSize / RAND_MAX); in random_allocations()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | devices.cpp | 128 get_next_check_sum_offset(int32 index, off_t maxSize) in get_next_check_sum_offset() argument 134 return (maxSize >> 10) + index * 2048; in get_next_check_sum_offset() 136 return ((system_time() + index) % (maxSize >> 9)) * 512; in get_next_check_sum_offset()
|