/haiku/src/preferences/screen/ |
H A D | RefreshSlider.h | 24 virtual void KeyDown(const char* bytes, int32 numBytes);
|
/haiku/src/apps/deskcalc/ |
H A D | InputTextView.cpp | 63 InputTextView::KeyDown(const char* bytes, int32 numBytes) argument 67 switch (bytes[0]) { 74 BView::KeyDown(bytes, numBytes); 85 BTextView::KeyDown(bytes, numBytes);
|
/haiku/headers/private/kernel/util/ |
H A D | fs_trim_support.h | 35 size_t bytes = (count - 1) * sizeof(uint64) * 2 + sizeof(fs_trim_data); 36 if (bytes > size) 39 void* trimBuffer = malloc(bytes); 43 if (user_memcpy(trimBuffer, buffer, bytes) != B_OK) {
|
/haiku/src/tests/add-ons/kernel/file_systems/random_read/ |
H A D | random_read.cpp | 7 arbitrary bytes at arbitrary positions of a file previously created. 89 // we are lazy tester, minimum read size is 4 bytes 90 int32 bytes = (rand() % BUFFER_SIZE) + 4; local 92 if (max > bytes) 93 max = bytes; 95 bytes = max; 97 ssize_t bytesRead = file.ReadAt(pos, buffer, bytes); 99 printf(" Could not read %ld bytes at offset %lld: %s\n", 100 bytes, pos, strerror(bytesRead)); 102 printf(" Could only read %ld bytes instea [all...] |
/haiku/src/system/libnetwork/netresolv/isc/ |
H A D | ev_streams.c | 49 static void consume(evStream *str, size_t bytes); 233 consume(evStream *str, size_t bytes) { argument 234 while (bytes > 0U) { 235 if (bytes < (size_t)str->iovCur->iov_len) { 236 str->iovCur->iov_len -= bytes; 238 ((u_char *)str->iovCur->iov_base + bytes); 239 str->ioDone += bytes; 240 bytes = 0; 242 bytes -= str->iovCur->iov_len; 268 /* Dribble out some bytes o 272 int bytes; local 295 int bytes; local [all...] |
/haiku/src/bin/addattr/ |
H A D | addAttr.cpp | 31 ssize_t bytes = fs_write_attr(fd, name, type, 0, &value, sizeof(Type)); local 32 if (bytes < 0) 35 return bytes; 42 On success it will return the amount of bytes written 135 ssize_t bytes = fs_write_attr(fd, name, type, 0, value, local 137 if (bytes < 0) 140 return bytes; 159 ssize_t bytes = writeAttr(fd, type, name, value, length); local 163 return bytes >= 0 ? B_OK : bytes; [all...] |
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | parser.c | 33 // Extract leader bytes 0x3c to 0x3f 87 fprintf(stderr, "libvterm: TODO unhandled CSI bytes \"%.*s\"\n", (int)(arglen - i), args + i); 110 fprintf(stderr, "Truncating strbuffer preserve to %zd bytes\n", len); 190 void vterm_push_bytes(VTerm *vt, const char *bytes, size_t len) argument 205 string_start = bytes; 209 #define ENTER_STRING_STATE(st) do { vt->parser_state = st; string_start = bytes + pos + 1; } while(0) 213 unsigned char c = bytes[pos]; 217 append_strbuffer(vt, string_start, bytes + pos - string_start); 218 string_start = bytes + pos + 1; 241 append_strbuffer(vt, string_start, bytes [all...] |
/haiku/src/servers/app/drawing/interface/remote/ |
H A D | RemoteEventStream.cpp | 175 char* bytes = (char*)malloc(numBytes + 1); local 176 if (bytes == NULL) 179 if (message.ReadList(bytes, numBytes) != B_OK) { 180 free(bytes); 185 event->AddInt8("byte", (int8)bytes[i]); 187 bytes[numBytes] = 0; 188 event->AddData("bytes", B_STRING_TYPE, bytes, numBytes + 1, false); 199 free(bytes);
|
/haiku/src/tests/apps/installer/ |
H A D | CopyEngine.h | 27 void SetSpaceRequired(off_t bytes) { fSpaceRequired = bytes; }; argument
|
/haiku/headers/private/kernel/arch/x86/ |
H A D | arch_thread_types.h | 26 #define _ALIGNED(bytes) __attribute__((aligned(bytes))) 63 // have enough space for all the registers, at least 2560 bytes according
|
/haiku/src/tests/kits/support/ |
H A D | string_utf8_tests.cpp | 9 expect(BString &string, const char *expect, size_t bytes, int32 chars) argument 11 printf("expect: \"%s\" %lu %ld\n", expect, bytes, chars); 13 if (bytes != (size_t)string.Length()) { 23 if (memcmp(string.String(), expect, bytes) != 0) { 88 printf("counting bytes of 3 chars from offset 2 expect 6\n");
|
/haiku/src/kits/game/ |
H A D | PushGameSound.cpp | 154 size_t bytes = inByteCount; local 156 if (!BytesReady(&bytes)) 159 if (fPlayPos + bytes > fBufferSize) { 170 bytes -= remainder; 171 if (BytesReady(&bytes)) { 172 memcpy(&buffer[remainder], fBuffer, bytes); 173 fPlayPos += bytes; 176 memcpy(inBuffer, &fBuffer[fPlayPos], bytes); 177 fPlayPos += bytes; 185 BPushGameSound::BytesReady(size_t * bytes) argument [all...] |
/haiku/src/kits/mail/ |
H A D | NodeMessage.cpp | 27 ssize_t bytes; local 33 m.FindData (name,type,0,&data,&bytes); 34 n.WriteAttr(name,type,0, data, bytes);
|
/haiku/src/libs/icon/flat_icon/ |
H A D | LittleEndianBuffer.h | 35 bool Write(const uint8* buffer, size_t bytes); 42 bool Read(LittleEndianBuffer& other, size_t bytes); 44 void Skip(size_t bytes);
|
/haiku/src/apps/icon-o-matic/generic/gui/ |
H A D | InputTextView.cpp | 61 InputTextView::KeyDown(const char* bytes, int32 numBytes) argument 65 switch (bytes[0]) { 81 BTextView::KeyDown(bytes, numBytes);
|
/haiku/src/apps/mediaconverter/ |
H A D | MediaFileListView.cpp | 90 MediaFileListView::KeyDown(const char *bytes, int32 numBytes) argument 92 switch (bytes[0]) { 108 BListView::KeyDown(bytes, numBytes);
|
/haiku/src/apps/serialconnect/ |
H A D | TermView.h | 26 void KeyDown(const char* bytes, int32 numBytes); 29 void SetLineTerminator(BString bytes); 31 void PushBytes(const char* bytes, const size_t length);
|
/haiku/src/tests/servers/app/avoid_focus/ |
H A D | AvoidFocus.cpp | 30 virtual void KeyDown(const char* bytes, int32 numBytes); 31 virtual void KeyUp(const char* bytes, int32 numBytes); 69 View::KeyDown(const char* bytes, int32 numBytes) argument 71 fChar = bytes; 80 View::KeyUp(const char* bytes, int32 numBytes) argument
|
/haiku/src/tests/servers/app/lock_focus/ |
H A D | LockFocusTest.cpp | 29 virtual void KeyDown(const char* bytes, int32 numBytes); 30 virtual void KeyUp(const char* bytes, int32 numBytes); 135 View::KeyUp(const char* bytes, int32 numBytes) argument 142 View::KeyDown(const char* bytes, int32 numBytes) argument 144 fLastKey = bytes[0];
|
/haiku/src/apps/installer/ |
H A D | UnzipEngine.cpp | 86 printf("%" B_PRIu64 " items in %" B_PRIdOFF " bytes\n", fItemsToUncompress, 255 uint64 bytes; local 259 if (sscanf(string, kListingFormat, &bytes, &date, &time, &path) == 4) { 260 fBytesToUncompress += bytes; 272 if (bytes == 0 && itemName.Length() == 0) { 286 // printf("item %s with %llu bytes to %s\n", itemName.String(), 287 // bytes, itemPath.String()); 289 fEntrySizeMap.Put(itemName.String(), bytes); 323 off_t bytes = 0; local 325 bytes 353 off_t bytes = 0; local [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/bfs/queries/ |
H A D | test.cpp | 79 ssize_t bytes = read_port_etc(port,&msg,buffer,sizeof(buffer),B_TIMEOUT,1000000); local 80 if (op == B_TIMED_OUT && bytes == B_TIMED_OUT) { 82 return bytes; 84 if (bytes < B_OK) { 85 printf("-> %s\n\n", strerror(bytes)); 86 return bytes; 92 dumpBlock(buffer, bytes);
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | QueryParserUtils.cpp | 97 uint8* bytes = (uint8*)*string; local 101 switch (bytes[0] & 0xf0) { 117 return bytes[0]; 119 uint32 c = bytes[0] & mask; 121 for (; i < length && (bytes[i] & 0x80) > 0; i++) 122 c = (c << 6) | (bytes[i] & 0x3f); 127 return (uint32)bytes[0];
|
/haiku/src/system/boot/platform/riscv/ |
H A D | FwCfg.cpp | 35 DmaOp(uint8_t *bytes, size_t count, uint32_t op) argument 40 dma.address = B_HOST_TO_BENDIAN_INT64((addr_t)bytes); 51 ReadBytes(uint8_t *bytes, size_t count) argument 53 DmaOp(bytes, count, fwCfgDmaFlagsRead); 58 WriteBytes(uint8_t *bytes, size_t count) argument 60 DmaOp(bytes, count, fwCfgDmaFlagsWrite);
|
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/ |
H A D | i2c_core.c | 261 uint8 *bytes; local 272 bytes = data; 274 if (i2c_readbyte(bus, bytes) != B_OK) { // timeout 275 TRACE("i2c_read: timeout error on byte %ld\n", bytes - (uint8 *)data); 292 bytes++; 304 const uint8 *bytes; local 317 bytes = data; 319 status = i2c_writebyte(bus, *bytes, &ack); 321 TRACE("i2c_write: timeout error on byte %ld\n", bytes - (uint8 *)data); 325 TRACE("i2c_write: arbitration lost on byte %ld\n", bytes [all...] |
/haiku/src/apps/remotedesktop/ |
H A D | RemoteView.h | 41 virtual void KeyDown(const char *bytes, int32 numBytes); 42 virtual void KeyUp(const char *bytes, int32 numBytes); 50 const char *bytes, int32 numBytes);
|