Searched refs:length (Results 1 - 25 of 1330) sorted by last modified time

1234567891011>>

/haiku/src/kits/tracker/
H A DUtilities.h447 void HexDump(const void* buffer, int32 length);
H A DTextWidget.cpp395 ssize_t length = 0; local
398 (const void**)&text, &length) == B_OK) {
467 // get full text length
H A DWidgetAttributeText.cpp127 TruncStringBase(BString* outString, const char* inString, int32 length, argument
135 if (view->StringWidth(inString, length) <= width)
142 results[0] = outString->LockBuffer(length + 3);
335 int32 length, const BPoseView* view, float width, uint32 truncMode)
337 return TruncStringBase(outString, inString, length, view, width, truncMode);
782 size_t length = (size_t)textView->TextLength(); local
787 result = EditModelName(fModel, name, length);
1166 ssize_t length = 0; local
1179 length = fModel->Node()->ReadAttr(fColumn->AttrName(),
1182 if (length >
334 TruncString(BString* outString, const char* inString, int32 length, const BPoseView* view, float width, uint32 truncMode) argument
1836 int32 length; local
[all...]
H A DFSUtils.cpp764 EditModelName(const Model* model, const char* name, size_t length) argument
766 if (model == NULL || name == NULL || name[0] == '\0' || length <= 0)
807 result = ShouldEditRefName(model->EntryRef(), name, length);
821 ShouldEditRefName(const entry_ref* ref, const char* name, size_t length) argument
823 if (ref == NULL || name == NULL || name[0] == '\0' || length <= 0)
831 if (length >= B_FILE_NAME_LENGTH) {
1365 int32 length = strlen(destName) - 1; local
1366 while (destName[length] == '.') {
1368 destName[length--] = '\0';
2217 FileStatToString(StatStruct* stat, char* buffer, int32 length) argument
3291 ReadAttr(const BNode* node, const char* hostAttrName, const char* foreignAttrName, type_code type, off_t offset, void* buffer, size_t length, void (*swapFunc)(void*), bool isForeign) argument
[all...]
/haiku/src/kits/interface/
H A DTextView.cpp208 "Returns the length of the text in bytes.", 0,
1144 BTextView::SetText(const char* text, int32 length, const text_run_array* runs) argument
1161 if (text != NULL && length > 0)
1162 InsertText(text, length, 0, runs);
1173 _Refresh(0, length);
1182 BTextView::SetText(BFile* file, int32 offset, int32 length, argument
1195 if (!fText->InsertText(file, offset, length, 0))
1199 fLines->BumpOffset(length, _LineAt(offset) + 1);
1202 fStyles->BumpOffset(length, fStyles->OffsetToRun(offset - 1) + 1);
1205 SetRunArray(offset, offset + length, run
1230 Insert(const char* text, int32 length, const text_run_array* runs) argument
1238 Insert(int32 offset, const char* text, int32 length, const text_run_array* runs) argument
1321 GetText(int32 offset, int32 length, char* buffer) const argument
1417 ssize_t length = 0; local
1800 int32 length = offset - line->offset; local
2016 int32 length = (line + 1)->offset - line->offset; local
3005 InsertText(const char* text, int32 length, int32 offset, const text_run_array* runs) argument
4253 _TabExpandedStyledWidth(int32 offset, int32 length, float* _ascent, float* _descent) const argument
4302 _StyledWidth(int32 fromOffset, int32 length, float* _ascent, float* _descent) const argument
4366 _DoInsertText(const char* text, int32 length, int32 offset, const text_run_array* runs) argument
4416 int32 length = (line + 1)->offset; local
5931 int32 length = fText->Length(); local
5959 _FilterDisallowedChars(char* text, ssize_t& length, text_run_array* runArray) argument
[all...]
/haiku/headers/private/kernel/arch/x86/
H A Darch_cpu.h489 void (*set_mtrr)(uint32 index, uint64 base, uint64 length,
664 void x86_set_mtrr(uint32 index, uint64 base, uint64 length, uint8 type);
/haiku/headers/private/file_systems/
H A DQueryParser.h552 // end points to the last character of the string - and the length
554 int32 length = end + 2 - start; local
555 // just to make sure; since that's the max. attribute name length and
557 if (length > QueryPolicy::kMaxFileNameLength || length <= 0)
560 char* copy = (char*)malloc(length);
564 memcpy(copy, start, length - 1);
565 copy[length - 1] = '\0';
854 // B_STRING_TYPE doesn't have a fixed length, so it was set
862 // B+tree with a length o
[all...]
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/
H A DIMAPFolder.cpp337 \a length will reflect how many bytes are left to read in case there
342 size_t& length, entry_ref& ref, BFile& file)
354 status = _WriteStream(file, stream, length);
433 \a length will reflect how many bytes are left to read in case there
437 IMAPFolder::StoreBody(uint32 uid, BDataIO& stream, size_t& length, argument
451 return _WriteStream(file, stream, length);
779 IMAPFolder::_WriteStream(BFile& file, BDataIO& stream, size_t& length) const
782 while (length > 0) {
784 std::min(sizeof(buffer), length));
790 length
341 StoreMessage(uint32 fetchFlags, BDataIO& stream, size_t& length, entry_ref& ref, BFile& file) argument
[all...]
/haiku/src/servers/app/font/
H A DGlyphLayoutEngine.h200 int32 length, int32 maxChars,
259 const char* utf8String, int32 length, int32 maxChars,
363 if (utf8String - start + 1 > length)
257 LayoutGlyphs(GlyphConsumer& consumer, const ServerFont& font, const char* utf8String, int32 length, int32 maxChars, const escapement_delta* delta, uint8 spacing, const BPoint* offsets, FontCacheReference* _cacheReference) argument
/haiku/src/servers/app/
H A DServerApp.cpp511 ServerApp::_GetLooperName(char* name, size_t length) argument
513 snprintf(name, length, "a:%" B_PRId32 ":%s", ClientTeam(), SignatureLeaf());
2108 // 6) int32 string length to measure (numStrings times)
2863 // 12) int32 string length to measure (numStrings times)
/haiku/src/preferences/screen/
H A DScreenWindow.cpp1376 size_t length = 0; local
1383 length = snprintf(text, sizeof(text),
1393 if (info.serial_number[0] && length < sizeof(text)) {
1394 if (length > 0) {
1395 text[length++] = '\n';
1396 text[length++] = '\n';
1397 text[length] = '\0';
1399 length += snprintf(text + length, sizeof(text) - length,
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_socket.cpp77 const void* value, int length);
294 size_t length, int flags)
296 iovec stackVec = { data, length };
459 socket_control(net_socket* socket, uint32 op, void* data, size_t length) argument
511 LEVEL_DRIVER_IOCTL, op, data, &length);
538 socket_receive_data(net_socket* socket, size_t length, uint32 flags, argument
542 length, flags, _buffer);
546 if (*_buffer && length < (*_buffer)->size) {
548 gNetBufferModule.trim(*_buffer, length);
591 size_t length local
293 socket_receive_no_buffer(net_socket* socket, msghdr* header, void* data, size_t length, int flags) argument
1156 socket_receive(net_socket* socket, msghdr* header, void* data, size_t length, int flags) argument
1268 socket_send(net_socket* socket, msghdr* header, const void* data, size_t length, int flags) argument
1446 socket_set_option(net_socket* socket, int level, int option, const void* value, int length) argument
1569 socket_setsockopt(net_socket* socket, int level, int option, const void* value, int length) argument
[all...]
/haiku/headers/compatibility/gnu/
H A Dpthread.h22 extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length);
/haiku/src/add-ons/kernel/network/protocols/l2cap/
H A Dl2cap_command.cpp96 option->header.length = sizeof(option->value);
110 option->header.length = sizeof(option->value);
124 option->header.length = sizeof(option->value);
H A Dl2cap_signal.cpp83 parse_configuration_options(net_buffer* buffer, size_t offset, uint16 length, argument
86 while (offset < length) {
93 min_c(sizeof(value), option.length)) != B_OK) {
130 sizeof(option) + option.length);
134 offset += sizeof(option) + option.length;
140 l2cap_handle_configuration_req(HciConnection* conn, uint8 ident, net_buffer* buffer, uint16 length) argument
159 parse_configuration_options(buffer, sizeof(l2cap_configuration_req), length, options);
178 uint8 ident, net_buffer* buffer, uint16 length, bool& releaseIdent)
196 parse_configuration_options(buffer, sizeof(l2cap_configuration_rsp), length, options);
252 l2cap_handle_echo_req(HciConnection *conn, uint8 ident, net_buffer* buffer, uint16 length) argument
177 l2cap_handle_configuration_rsp(HciConnection* conn, L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length, bool& releaseIdent) argument
264 l2cap_handle_echo_rsp(L2capEndpoint* endpoint, uint8 ident, net_buffer* buffer, uint16 length) argument
463 const uint16 length = le16toh(commandHeader->length); local
[all...]
H A Dl2cap.cpp120 const void* _value, int length)
124 _value, length);
239 uint16 length = le16toh(bufferHeader->length);
242 TRACE("%s: len=%d cid=%x\n", __func__, length, dcid);
246 if (length != buffer->size) {
247 ERROR("l2cap: payload length mismatch, packetlen=%d, bufferlen=%" B_PRIu32 "\n",
248 length, buffer->size);
119 l2cap_setsockopt(net_protocol* protocol, int level, int option, const void* _value, int length) argument
H A DL2capEndpoint.cpp484 header->length = B_HOST_TO_LENDIAN_INT16(buffer->size - sizeof(l2cap_basic_header));
/haiku/src/add-ons/kernel/bluetooth/hci/
H A Dacl.cpp40 ERROR("%s: Invalid ACL data packet, small length=%" B_PRIu32 "\n",
54 // Get ACL connection handle, PB flag and payload length
59 uint16 length = B_LENDIAN_TO_HOST_INT16(aclHeader->alen); local
63 TRACE("%s: ACL data packet, handle=%#x, PB=%#x, length=%d\n", __func__,
64 con_handle, pb, length);
90 " want %d \n", __func__, conn->currentRxPacket->size, length );
98 TRACE("%s: Invalid L2CAP start fragment, small, length=%" B_PRIu32
110 TRACE("%s: New L2CAP, handle=%#x length=%d\n", __func__, con_handle,
111 le16toh(l2capHeader->length));
115 conn->currentRxExpectedLength = B_LENDIAN_TO_HOST_INT16(l2capHeader->length)
[all...]
/haiku/headers/private/bluetooth/
H A Dl2cap.h60 uint16 length; /* payload size */ member in struct:__anon7
78 uint16 length; /* command parameters length */ member in struct:__anon9
164 uint8 length;
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp292 uint32 cmd, void *buffer, size_t /*length*/)
1311 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; local
1312 if (length <= bufferSize) {
1317 buffer->d_reclen = length;
1430 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; local
1431 if (length <= bufferSize) {
1436 buffer->d_reclen = length;
1904 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; local
1905 if (length <= bufferSize) {
1910 buffer->d_reclen = length;
[all...]
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DShortAttribute.h34 uint8* buffer, size_t* length);
H A DShortAttribute.cpp47 size_t length = strlen(name); local
48 status = Lookup(name, &length);
91 ShortAttribute::Read(attr_cookie* cookie, off_t pos, uint8* buffer, size_t* length) argument
108 if (pos + *length > fEntry->valuelen)
111 lengthToRead = *length;
118 *length = lengthToRead;
/haiku/src/add-ons/kernel/drivers/audio/emuxki/
H A Dmulti.c1123 emuxki_multi_control(void *cookie, uint32 op, void *data, size_t length) argument
/haiku/src/add-ons/kernel/drivers/audio/echo/
H A Dmulti.cpp814 echo_multi_control(void *cookie, uint32 op, void *data, size_t length) argument
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Ddriver.h201 status_t multi_audio_control(geode_controller* controller, uint32 op, void* arg, size_t length);

Completed in 135 milliseconds

1234567891011>>