Searched refs:length (Results 1 - 25 of 1267) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/string/
H A Dstrlen.cpp19 size_t length = 0; local
22 for (; (((addr_t)string + length) & 3) != 0; length++) {
23 if (string[length] == '\0')
24 return length;
28 uint32* valuePointer = (uint32*)(string + length);
32 /* Find the exact length */
33 for (length = ((char*)valuePointer) - string; string[length] != '\0';
34 length
[all...]
H A Dstrnlen.cpp19 size_t length = 0; local
21 for (; (((addr_t)string + length) & 3) != 0; length++) {
22 if (length == count || string[length] == '\0')
23 return length;
28 uint32* valuePointer = (uint32*)(string + length);
33 /* Find the exact length */
34 for (length = ((char*)valuePointer) - string; length < coun
[all...]
H A Dstrndup.cpp18 size_t length = strlen(string);
19 if (length > size)
20 length = size;
22 char* copied = (char*)malloc(length + 1);
26 memcpy(copied, string, length);
27 copied[length] = '\0';
H A Dstrdup.cpp15 size_t length; local
22 length = strlen(string) + 1;
24 if ((copied = (char *)malloc(length)) == NULL)
27 memcpy(copied, string, length);
H A Dmemccpy.c13 memccpy(void *_dest, const void *_source, int stopByte, size_t length) argument
15 if (length) {
22 } while (--length != 0);
/haiku/src/system/libroot/posix/wchar/
H A Dwcsnlen.c12 size_t length = 0; local
14 while (length < maxLength && *wcs++ != L'\0')
15 length++;
17 return length;
H A Dwcslen.c12 size_t length = 0; local
15 length++;
17 return length;
/haiku/src/add-ons/kernel/file_systems/udf/
H A DUdfString.h30 UdfString(const char *cs0, uint32 length);
32 template <uint32 length>
33 UdfString(const array<char, length> &dString);
37 void SetTo(const char *cs0, uint32 length);
38 template <uint32 length>
39 void SetTo(const array<char, length> &dString);
41 template <uint32 length>
42 UdfString& operator=(const array<char, length> &dString);
59 template <uint32 length>
60 UdfString::UdfString(const array<char, length>
[all...]
/haiku/src/system/libroot/posix/
H A Dlibgen.cpp19 size_t length = strlen(filepath);
21 while (filepath[--length] == '/' && length)
22 filepath[length] = '\0';
44 size_t length = strlen(filepath);
46 while (filepath[--length] == '/' && length)
47 filepath[length] = '\0';
/haiku/headers/posix/
H A Dstrings.h20 size_t length);
23 #define bcmp(a, b, length) memcmp((a), (b), (length))
24 #define bcopy(source, dest, length) memmove((dest), (source), (length))
25 #define bzero(buffer, length) memset((buffer), 0, (length))
/haiku/src/system/boot/platform/u-boot/
H A Ddebug.cpp23 int length; local
33 length = vsnprintf(buffer, sizeof(buffer), format, list);
36 if (length >= (int)sizeof(buffer))
37 length = sizeof(buffer) - 1;
39 serial_puts(buffer, length);
56 int length; local
59 length = vsnprintf(buffer, sizeof(buffer), format, list);
62 if (length >= (int)sizeof(buffer))
63 length = sizeof(buffer) - 1;
65 serial_puts(buffer, length);
[all...]
/haiku/src/kits/mail/
H A Dcrypt.cpp19 ssize_t length; local
20 if (msg->FindData(name,B_RAW_TYPE,(const void **)&encryptedPassword,&length) < B_OK || !encryptedPassword || length == 0)
23 char *buffer = new char[length];
24 passwd_crypt(encryptedPassword,buffer,length);
35 ssize_t length = strlen(password) + 1;
36 char *buffer = new char[length];
37 passwd_crypt((char *)password,buffer,length);
40 status_t status = msg->AddData(name,B_RAW_TYPE,buffer,length,false);
47 _EXPORT void passwd_crypt(char *in,char *out,int length) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A DIORequestInfo.h15 size_t length; member in struct:UserlandFS::IORequestInfo
20 IORequestInfo(int32 id, bool isWrite, off_t offset, size_t length, argument
24 length(length),
34 length(other.length),
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DCRCTable.h9 uint32 calculate_crc(uint32 crc, uint8* data, uint16 length);
/haiku/src/add-ons/kernel/drivers/audio/ac97/ich/
H A Dac97_multi.h31 status_t multi_control(void *cookie, uint32 op, void *data, size_t length);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DCRCTable.h13 uint16 calculate_crc(uint16 crc, uint8 *data, uint16 length);
17 unsigned int length);
H A DBitmapBlock.h24 bool CheckMarked(uint32 start, uint32 length);
25 bool CheckUnmarked(uint32 start, uint32 length);
27 bool Mark(uint32 start, uint32 length,
29 bool Unmark(uint32 start, uint32 length,
38 uint32& length);
44 bool _Check(uint32 start, uint32 length, bool marked);
46 bool _Update(uint32 start, uint32 length, bool mark,
59 BitmapBlock::CheckUnmarked(uint32 start, uint32 length) argument
61 return _Check(start, length, false);
66 BitmapBlock::CheckMarked(uint32 start, uint32 length) argument
73 Mark(uint32 start, uint32 length, bool force) argument
80 Unmark(uint32 start, uint32 length, bool force) argument
[all...]
/haiku/src/kits/interface/layouter/
H A DLayouter.cpp21 LayoutInfo::ElementRangeSize(int32 position, int32 length) argument
23 if (length == 1)
26 int lastIndex = position + length - 1;
/haiku/src/bin/makeudfimage/
H A DPhysicalPartitionAllocator.cpp48 /*! \brief Allocates the next available extent of given length.
50 \param length The desired length (in bytes) of the extent.
51 \param contiguous If false, signals that an extent of shorter length will
56 in the partition is stored. Note that the length
57 field of the extent may be shorter than the length
61 on the physical volume is stored. Note that the length
62 field of the extent may be shorter than the length
71 PhysicalPartitionAllocator::GetNextExtent(uint32 length, argument
76 status_t error = fAllocator.GetNextExtent(length, contiguou
99 GetNextExtents(off_t length, std::list<long_address> &extents, std::list<extent_address> &physicalExtents) argument
140 uint32 length = fAllocator.Length(); local
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Ddebug.c57 ntfs_log_debug("VCN LCN Run length\n");
68 (long long)rl[i].length,
69 rl[i].length ? "" : " (runlist end)");
73 (long long)rl[i].length,
74 rl[i].length ? "" : " (runlist end)");
75 } while (rl[i++].length);
/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dstart.cpp40 int length; local
44 if ((length = of_getprop(root, "device_type", buffer, sizeof(buffer) - 1))
46 buffer[length] = '\0';
54 if ((length = of_getprop(root, "model", buffer, sizeof(buffer) - 1))
56 buffer[length] = '\0';
61 if ((length = of_getprop(root, "name", buffer, sizeof(buffer) - 1))
63 buffer[length] = '\0';
/haiku/src/system/libroot/posix/string/arch/x86_64/
H A Darch_string.cpp48 size_t length)
51 : "+D" (destination), "+S" (source), "+c" (length)
76 size_t length)
78 if (length < 8) {
79 table_small[length](destination, source);
84 to = reinterpret_cast<uint64_t*>(destination + length - 8);
85 from = reinterpret_cast<const uint64_t*>(source + length - 8);
113 static inline void memcpy_sse(uint8_t* destination, const uint8_t* source, size_t length) argument
117 auto toEnd = reinterpret_cast<__m128i*>(destination + length - 16);
118 auto fromEnd = reinterpret_cast<const __m128i*>(source + length
47 memcpy_repmovs(uint8_t* destination, const uint8_t* source, size_t length) argument
75 memcpy_small(uint8_t* destination, const uint8_t* source, size_t length) argument
138 memcpy(void* destination, const void* source, size_t length) argument
156 memset_repstos(uint8_t* destination, uint8_t value, size_t length) argument
166 memset_sse(uint8_t* destination, uint8_t value, size_t length) argument
193 memset_small(uint8_t* destination, uint8_t value, size_t length) argument
213 memset(void* ptr, int chr, size_t length) argument
[all...]
/haiku/src/add-ons/kernel/network/ppp/pppoe/
H A DDiscoveryPacket.cpp33 uint16 length = ntohs(header.length); local
35 if(length > packet->size - PPPoE_HEADER_SIZE) {
37 dprintf("pppoe payload: %d\n", length);
48 while(position <= length - 4) {
50 position += ntohs(tag->length) + 4;
52 AddTag(ntohs(tag->type), tag->data, ntohs(tag->length));
67 DiscoveryPacket::AddTag(uint16 type, const void *data, uint16 length, int32 index) argument
69 pppoe_tag *add = (pppoe_tag*) malloc(length + 4);
71 add->length
149 uint16 length = 0; local
[all...]
/haiku/src/tools/fs_shell/
H A Dstring.cpp15 fssh_memchr(const void *source, int value, fssh_size_t length) argument
17 return memchr((void*)source, value, length);
22 fssh_memcmp(const void *buffer1, const void *buffer2, fssh_size_t length) argument
24 return memcmp(buffer1, buffer2, length);
29 fssh_memcpy(void *dest, const void *source, fssh_size_t length) argument
31 return memcpy(dest, source, length);
37 fssh_memccpy(void *dest, const void *source, int stopByte, fssh_size_t length)
39 return memccpy(dest, source, stopByte, length);
45 fssh_memmove(void *dest, const void *source, fssh_size_t length) argument
47 return memmove(dest, source, length);
52 fssh_memset(void *dest, int value, fssh_size_t length) argument
66 fssh_strncpy(char *dest, const char *source, fssh_size_t length) argument
80 fssh_strncat(char *dest, const char *source, fssh_size_t length) argument
101 fssh_strncmp(const char *string1, const char *string2, fssh_size_t length) argument
179 fssh_strxfrm(char *string1, const char *string2, fssh_size_t length) argument
209 fssh_strncasecmp(const char *string1, const char *string2, fssh_size_t length) argument
250 fssh_strlcat(char *dest, const char *source, fssh_size_t length) argument
257 fssh_strlcpy(char *dest, const char *source, fssh_size_t length) argument
[all...]
/haiku/src/system/boot/loader/
H A DPathBlacklist.cpp35 size_t length = strlen(path); local
36 if (length > 0 && path[length - 1] == '/')
37 length--;
39 if (!_Resize(length, false))
42 if (length > 0) {
43 memcpy(fPath, path, length);
44 fPath[length] = '\0';
61 size_t length = (fLength > 0 ? fLength + 1 : 0) + componentLength; local
62 if (!_Resize(length, tru
73 _Resize(size_t length, bool keepData) argument
[all...]

Completed in 247 milliseconds

1234567891011>>