Searched refs:bytes (Results 1 - 25 of 371) 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/bin/makeudfimage/
H A DSimulatedStream.cpp41 ssize_t bytes = fStream.ReadAt(extent.offset, buffer, extent.size); local
42 if (bytes >= 0) {
43 size -= bytes;
44 fPosition += bytes;
45 buffer += bytes;
46 bytesTotal += bytes;
48 error = status_t(bytes);
70 ssize_t bytes = fStream.ReadAt(extent.offset, buffer, extent.size); local
71 if (bytes >= 0) {
72 size -= bytes;
102 ssize_t bytes = fStream.WriteAt(extent.offset, buffer, extent.size); local
134 ssize_t bytes = fStream.WriteAt(extent.offset, buffer, extent.size); local
167 ssize_t bytes = fStream.WriteAt(extent.offset, data, extent.size); local
197 ssize_t bytes = fStream.WriteAt(extent.offset, data, extent.size); local
227 ssize_t bytes = fStream.ZeroAt(extent.offset, extent.size); local
257 ssize_t bytes = fStream.ZeroAt(extent.offset, extent.size); local
[all...]
H A DPositionIOStream.cpp45 /*! \brief Writes \a size bytes worth of data from \a data at the current
52 size_t bytes = 0; local
58 // number of bytes to write is smaller than the buffer
63 while (bytes < size) {
68 bytes += bytesWritten;
81 return error ? ssize_t(error) : ssize_t(bytes);
84 /*! \brief Writes \a size bytes worth of data from \a data at position
91 size_t bytes = 0; local
97 // number of bytes to write is smaller than the buffer
102 while (bytes < siz
131 size_t bytes = 0; local
164 size_t bytes = 0; local
[all...]
H A DUdfBuilder.cpp147 _PrintError("Udf volume name too long (%ld bytes, max "
148 "length is 128 bytes.",
156 _PrintError("Iso volume name too long (%ld bytes, max "
157 "length is 32 bytes.",
241 ssize_t bytes = _OutputFile().Zero(reservedAreaSize); local
242 error = check_size_error(bytes, reservedAreaSize);
275 ssize_t bytes = _OutputFile().Write(&bea, sizeof(bea)); local
276 error = check_size_error(bytes, sizeof(bea));
278 bytes = _OutputFile().Zero(vrsBlockSize-sizeof(bea));
279 error = check_size_error(bytes, vrsBlockSiz
295 ssize_t bytes = _OutputFile().Write(&nsr, sizeof(nsr)); local
312 ssize_t bytes = _OutputFile().Write(&tea, sizeof(tea)); local
342 ssize_t bytes = _OutputFile().ZeroAt(off_t(primaryVdsExtent.location()) << _BlockShift(), local
361 ssize_t bytes = _OutputFile().ZeroAt(off_t(reserveVdsExtent.location()) << _BlockShift(), local
377 ssize_t bytes = _OutputFile().Write(&anchor256, sizeof(anchor256)); local
442 ssize_t bytes = _OutputFile().WriteAt(off_t(primary.tag().location()) << _BlockShift(), local
455 ssize_t bytes = _OutputFile().WriteAt(off_t(primary.tag().location()) << _BlockShift(), local
502 ssize_t bytes = _OutputFile().WriteAt(off_t(partition.tag().location()) << _BlockShift(), local
515 ssize_t bytes = _OutputFile().WriteAt(off_t(partition.tag().location()) << _BlockShift(), local
545 ssize_t bytes = _OutputFile().WriteAt(off_t(freespace.tag().location()) << _BlockShift(), local
558 ssize_t bytes = _OutputFile().WriteAt(off_t(freespace.tag().location()) << _BlockShift(), local
634 ssize_t bytes = _OutputFile().WriteAt(off_t(logical.tag().location()) << _BlockShift(), local
647 ssize_t bytes = _OutputFile().WriteAt(off_t(logical.tag().location()) << _BlockShift(), local
677 ssize_t bytes = 0; local
724 ssize_t bytes = _OutputFile().WriteAt(off_t(implementationUse.tag().location()) << _BlockShift(), local
749 ssize_t bytes = _OutputFile().WriteAt(off_t(terminator.tag().location()) << _BlockShift(), local
762 ssize_t bytes = _OutputFile().WriteAt(off_t(terminator.tag().location()) << _BlockShift(), local
818 ssize_t bytes = _OutputFile().WriteAt(off_t(filesetExtent.location()) << _BlockShift(), local
848 ssize_t bytes = _OutputFile().WriteAt(off_t(filesetExtent.location()) << _BlockShift(), local
867 ssize_t bytes = _OutputFile().WriteAt(off_t(partition.tag().location()) << _BlockShift(), local
880 ssize_t bytes = _OutputFile().WriteAt(off_t(partition.tag().location()) << _BlockShift(), local
932 ssize_t bytes = _OutputFile().WriteAt(off_t(integrityExtent.location()) << _BlockShift(), local
948 ssize_t bytes = _OutputFile().WriteAt(off_t((integrityExtent.location()+1)) << _BlockShift(), local
973 ssize_t bytes = _OutputFile().Write(&anchorN, sizeof(anchorN)); local
993 ssize_t bytes = _OutputFile().Zero(padding); local
1285 ssize_t bytes = udfData->Write(parent, parent->total_length()); local
1374 ssize_t bytes = udfData->Write(id, id->total_length()); local
1513 ssize_t bytes = udfData->Write(file, udfDataLength); local
[all...]
/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/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/system/libroot/posix/sys/
H A Duio.c19 ssize_t bytes = _kern_readv(fd, -1, vecs, count); local
21 RETURN_AND_SET_ERRNO(bytes);
28 ssize_t bytes; local
33 bytes = _kern_readv(fd, pos, vecs, count);
35 RETURN_AND_SET_ERRNO(bytes);
42 ssize_t bytes = _kern_writev(fd, -1, vecs, count); local
44 RETURN_AND_SET_ERRNO(bytes);
51 ssize_t bytes; local
56 bytes = _kern_writev(fd, pos, vecs, count);
58 RETURN_AND_SET_ERRNO(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/util/
H A Dkernel_c.h15 char bytes[_KERNEL_CPP_STRUCT_SIZE_##name]; \
H A Dfs_trim_support.h33 size_t bytes = (count - 1) * sizeof(uint64) * 2 + sizeof(fs_trim_data);
34 if (bytes > size)
37 void* trimBuffer = malloc(bytes);
41 if (user_memcpy(trimBuffer, buffer, bytes) != B_OK) {
/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 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
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;

Completed in 106 milliseconds

1234567891011>>