Searched refs:bytes (Results 1 - 25 of 364) sorted by relevance

1234567891011>>

/haiku/headers/private/interface/
H A Dutf8_functions.h43 UTF8NextCharLen(const char *bytes, size_t length) argument
45 if (bytes == NULL || length == 0 || bytes[0] == 0)
48 if ((bytes[0] & 0x80) == 0) {
53 if (IsInsideGlyph(bytes[0])) {
62 while ((bytes[0] & mask) != 0) {
72 // There would need to be more bytes to satisfy the char.
78 if (!IsInsideGlyph(bytes[i])) {
107 /*! UTF8CountBytes gets the length (in bytes) of a UTF8 string. Up to
112 UTF8CountBytes(const char *bytes, int3 argument
138 UTF8CountChars(const char *bytes, int32 numBytes) argument
169 UTF8ToCharCode(const char **bytes) argument
[all...]
/haiku/src/apps/terminal/
H A DUTF8Char.h15 char bytes[4]; member in struct:UTF8Char
19 bytes[0] = 0;
24 bytes[0] = c;
39 bytes[0] = c[0];
41 bytes[1] = c[1];
43 bytes[2] = c[2];
45 bytes[3] = c[3];
63 return ByteCount(bytes[0]);
68 switch (BUnicodeChar::EastAsianWidth(BUnicodeChar::FromUTF8(bytes))) {
80 return BUnicodeChar::IsSpace(BUnicodeChar::FromUTF8(bytes));
[all...]
/haiku/src/add-ons/print/drivers/canon_lips/lips3/
H A DCompress3.h9 int compress3(unsigned char* out, unsigned char* in, int bytes);
/haiku/src/system/libroot/posix/string/
H A Dbcmp.c15 int bcmp(void const *a, const void *b, size_t bytes);
18 bcmp(void const *a, const void *b, size_t bytes) argument
20 return memcmp(a, b, bytes);
/haiku/src/system/libroot/posix/sys/
H A Duio.c19 ssize_t bytes; local
24 bytes = _kern_readv(fd, -1, vecs, count);
26 RETURN_AND_SET_ERRNO(bytes);
33 ssize_t bytes; local
38 bytes = _kern_readv(fd, pos, vecs, count);
40 RETURN_AND_SET_ERRNO(bytes);
47 ssize_t bytes; local
52 bytes = _kern_writev(fd, -1, vecs, count);
54 RETURN_AND_SET_ERRNO(bytes);
61 ssize_t bytes; local
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/
H A Dringqueue.cpp54 TRACE("%s: Requested %d bytes for %s RingQueue.\n", __func__, sizeBytes,
62 TRACE("%s: Allocating %d bytes for %s RingQueue.\n", __func__, fSize,
95 RingQueue::Read(unsigned char* dataPtr, size_t bytes) argument
97 // If there is no data or nothing to read, return 0 bytes
98 if (dataPtr == 0 || bytes <= 0 || fWriteBytesAvail == fSize)
103 // Set a high threshold of total available bytes available.
104 if (bytes > readBytesAvail)
105 bytes = readBytesAvail;
108 if (bytes > fSize - fReadPtr) {
111 memcpy(dataPtr + len, fData, bytes
124 Write(unsigned char* dataPtr, size_t bytes) argument
[all...]
H A Dringqueue.h32 RingQueue(size_t bytes, uint32 queueType);
34 size_t Read(unsigned char* data, size_t bytes);
35 size_t Write(unsigned char* data, size_t bytes);
/haiku/src/tests/system/kernel/
H A Dport_multi_read_test.cpp24 ssize_t bytes = port_buffer_size(port); local
25 printf("[%ld] buffer size %ld waiting\n", find_thread(NULL), bytes);
29 bytes = read_port(port, &code, buffer, sizeof(buffer));
31 code, strerror(bytes));
32 if (bytes >= 0)
57 size_t bytes = 20 + i; local
58 char buffer[bytes];
59 memset(buffer, 0x55, bytes);
61 printf("send %ld bytes\n", bytes);
[all...]
/haiku/src/add-ons/print/transports/shared/
H A DSocketStream.cpp39 int bytes; local
45 bytes = __sock->read(__pu, __alsize);
46 if (bytes > 0) {
49 ofs.write(__pu, bytes);
51 setg(__pu, __pu, __pu + bytes);
79 int bytes; local
81 bytes = __sock->write(buffer, length);
82 if (bytes <= 0) {
87 ofs.write(buffer, bytes);
89 length -= bytes;
[all...]
/haiku/src/add-ons/kernel/bus_managers/ata/
H A DATAHelper.cpp20 size - number of bytes to copy
42 // remaining bytes we are allowed to copy from/to ccb
47 size_t bytes; local
49 bytes = MIN(size, requestSize);
50 bytes = MIN(bytes, sgList->size);
53 vm_memcpy_from_physical(buffer, sgList->address + offset, bytes,
56 vm_memcpy_to_physical(sgList->address + offset, buffer, bytes,
60 buffer = (char *)buffer + bytes;
61 size -= bytes;
[all...]
/haiku/src/tests/system/kernel/unit/
H A DTestOutput.cpp46 int bytes = vsnprintf(fBuffer, sizeof(fBuffer), format, args); local
49 return bytes;
/haiku/src/add-ons/kernel/busses/scsi/virtio/
H A DVirtioSCSIHelper.cpp21 size - number of bytes to copy
43 // remaining bytes we are allowed to copy from/to ccb
48 size_t bytes; local
50 bytes = MIN(size, requestSize);
51 bytes = MIN(bytes, sgList->size);
54 vm_memcpy_from_physical(buffer, sgList->address + offset, bytes,
57 vm_memcpy_to_physical(sgList->address + offset, buffer, bytes,
61 buffer = (char *)buffer + bytes;
62 size -= bytes;
[all...]
/haiku/src/tests/add-ons/kernel/file_systems/bfs/btree/
H A DInode.cpp41 Inode::Append(Transaction& transaction, off_t bytes) argument
43 return SetFileSize(transaction, Size() + bytes);
48 Inode::SetFileSize(Transaction&, off_t bytes) argument
50 //printf("set size = %ld\n",bytes);
51 fSize = bytes;
52 return fFile.SetSize(bytes);
/haiku/src/tests/system/network/tcp_shell/
H A DBufferQueueTest.cpp26 create_filled_buffer(size_t bytes) argument
36 status_t status = gBufferModule->append(buffer, data, bytes);
38 printf("appending %lu bytes to buffer %p failed: %s\n", bytes, buffer,
49 add(size_t bytes, uint32 at) argument
51 gQueue.Add(create_filled_buffer(bytes), at);
56 eat(size_t bytes) argument
59 status_t status = gQueue.Get(bytes, true, &buffer);
61 ASSERT(buffer->size == bytes);
64 printf("getting %lu bytes faile
[all...]
/haiku/headers/private/kernel/vm/
H A Dvm_priv.h32 void vm_unreserve_memory(size_t bytes);
33 status_t vm_try_reserve_memory(size_t bytes, int priority, bigtime_t timeout);
/haiku/src/tests/system/network/icmp/
H A Dudp_unreachable.cpp62 ssize_t bytes = write(sockfd, string, strlen(string)); local
63 if (bytes < 0) {
68 printf("%zd bytes sent to remote server.\n", bytes);
71 bytes = read(sockfd, buffer, MAX_LENGTH);
72 if (bytes > 0) {
73 printf("Received %zd bytes from remote host\n", bytes);
/haiku/headers/private/net/
H A Dnet_buffer.h56 size_t bytes);
60 size_t bytes);
62 const void* data, size_t bytes, uint32 flags);
64 size_t bytes);
65 status_t (*remove_header)(net_buffer* buffer, size_t bytes);
66 status_t (*remove_trailer)(net_buffer* buffer, size_t bytes);
69 uint32 offset, size_t bytes);
82 void* data, size_t bytes);
84 net_buffer* source, uint32 offset, size_t bytes);
87 size_t bytes, voi
[all...]
/haiku/src/kits/storage/sniffer/
H A DRule.cpp58 /*! \brief Returns the number of bytes needed for this rule to perform a complete sniff,
72 ssize_t bytes = (*i)->BytesNeeded(); local
73 if (bytes >= 0) {
74 if (bytes > result)
75 result = bytes;
77 result = bytes;
H A DRPatternList.cpp59 /*! \brief Returns the number of bytes needed to perform a complete sniff, or an error
73 ssize_t bytes = (*i)->BytesNeeded(); local
74 if (bytes >= 0) {
75 if (bytes > result)
76 result = bytes;
78 result = bytes;
H A DPatternList.cpp59 /*! \brief Returns the number of bytes needed to perform a complete sniff, or an error
67 // Find the number of bytes needed to sniff any of our
74 ssize_t bytes = (*i)->BytesNeeded(); local
75 if (bytes >= 0) {
76 if (bytes > result)
77 result = bytes;
79 result = bytes;
86 // Now add on the number of bytes needed to get to the
/haiku/src/libs/icon/flat_icon/
H A DLittleEndianBuffer.cpp151 LittleEndianBuffer::Write(const uint8* buffer, size_t bytes) argument
153 if (bytes == 0)
157 size_t neededSize = SizeUsed() + bytes;
170 memcpy(fHandle, buffer, bytes);
171 fHandle += bytes;
244 LittleEndianBuffer::Read(LittleEndianBuffer& other, size_t bytes) argument
246 if ((fHandle + bytes - 1) >= fBufferEnd)
249 if (other.Write(fHandle, bytes)) {
251 other.fHandle -= bytes;
252 fHandle += bytes;
263 Skip(size_t bytes) argument
[all...]
/haiku/src/add-ons/input_server/filters/switch_workspace/
H A DSwitchWorkspaceInputFilter.cpp42 const char* bytes; local
43 if (message->FindString("bytes", &bytes) != B_OK)
65 if (bytes[0] == B_LEFT_ARROW)
67 else if (bytes[0] == B_UP_ARROW)
69 else if (bytes[0] == B_RIGHT_ARROW)
71 else if (bytes[0] == B_DOWN_ARROW)
/haiku/src/apps/installer/
H A DProgressReporter.h20 void AddItems(uint64 count, off_t bytes);
24 void ItemsWritten(uint64 items, off_t bytes,
H A DProgressReporter.cpp60 ProgressReporter::AddItems(uint64 count, off_t bytes) argument
62 fBytesToWrite += bytes;
72 printf("%" B_PRIdOFF " bytes to write in %" B_PRId64 " files\n",
84 ProgressReporter::ItemsWritten(uint64 items, off_t bytes, argument
88 fBytesWritten += bytes;
/haiku/src/apps/soundrecorder/
H A DFileUtils.cpp47 ssize_t bytes = src.Read(buf, bufSize); local
48 if (bytes > 0) {
49 ssize_t result = dst.Write(buf, bytes);
50 if (result != bytes) {
51 fprintf(stderr, "Failed to write %ld bytes: %s\n", bytes,
59 if (bytes < 0) {
61 (status_t)bytes));
62 return (status_t)bytes;
94 // copy one attribute in chunks of 4096 bytes
[all...]

Completed in 240 milliseconds

1234567891011>>