Home
last modified time | relevance | path

Searched refs:kBufferSize (Results 1 – 19 of 19) sorted by relevance

/haiku/src/tests/kits/net/
H A Dlink_echo.cpp25 static const size_t kBufferSize = 1500; variable
45 char buffer[kBufferSize]; in link_client()
47 while (fgets(buffer, kBufferSize, stdin) != NULL) { in link_client()
59 ssize_t bytesRead = recvfrom(fd, buffer, kBufferSize - 1, 0, NULL, in link_client()
79 char buffer[kBufferSize]; in link_server()
80 ssize_t bytesRead = recvfrom(fd, buffer, kBufferSize - 1, 0, client, in link_server()
/haiku/src/tests/kits/app/messaging/
H A DPortLinkTest.cpp8 const int32 kBufferSize = 2048; variable
50 char test[kBufferSize + 2048]; in main()
52 sender.Attach(test, kBufferSize - 40); in main()
/haiku/src/tools/
H A Ddata_to_source.cpp62 const int kBufferSize = 16 * 1024; in main() local
63 unsigned char buffer[kBufferSize]; in main()
76 ssize_t bytesRead = read(inFD, buffer, kBufferSize); in main()
/haiku/src/bin/
H A Dmvattr.cpp37 static const size_t kBufferSize = 1024 * 1024; variable
38 static uint8 kBuffer[kBufferSize];
92 size_t size = min_c(kBufferSize, bytesLeft); in moveAttribute()
/haiku/src/system/kernel/arch/arm64/
H A Darch_debug.cpp116 static const size_t kBufferSize = 256; in print_demangled_call() local
117 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call()
122 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call()
156 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
257 kBufferSize) < B_OK) { in print_demangled_call()
/haiku/src/system/boot/loader/
H A Dpackage_support.cpp356 static const size_t kBufferSize = 3 * B_FILE_NAME_LENGTH + 2; in _ParseActivatedPackagesFile() local
357 ArrayDeleter<char> path(new(std::nothrow) char[kBufferSize]); in _ParseActivatedPackagesFile()
360 snprintf(path.Get(), kBufferSize, "%s/%s/%s", in _ParseActivatedPackagesFile()
377 kBufferSize - remainingBytes - 1); in _ParseActivatedPackagesFile()
/haiku/src/system/kernel/arch/arm/
H A Darch_debug.cpp124 static const size_t kBufferSize = 256; in print_demangled_call() local
125 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call()
130 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call()
164 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
265 kBufferSize) < B_OK) { in print_demangled_call()
/haiku/src/kits/network/libnetapi/
H A DNetworkDevice.cpp433 const size_t kBufferSize = 65535; in get_scan_results() local
434 uint8* buffer = (uint8*)malloc(kBufferSize); in get_scan_results()
439 int32 length = kBufferSize; in get_scan_results()
487 const size_t kBufferSize = 65535; in get_scan_result() local
488 uint8* buffer = (uint8*)malloc(kBufferSize); in get_scan_result()
494 int32 length = kBufferSize; in get_scan_result()
537 const size_t kBufferSize = 65535; in get_station() local
538 uint8* buffer = (uint8*)malloc(kBufferSize); in get_station()
551 int32 length = kBufferSize; in get_station()
/haiku/src/system/kernel/debug/
H A Dtracing.cpp48 static const size_t kBufferSize = MAX_TRACE_SIZE / sizeof(trace_entry); variable
146 static const size_t kBufferSize = 256; in print_stack_trace() local
147 char* buffer = (char*)debug_malloc(kBufferSize); in print_stack_trace()
164 kBufferSize, &isObjectMethod); in print_stack_trace()
265 entry = fBuffer + kBufferSize - entry->previous_size; in PreviousEntry()
316 if (start < (addr_t)fBuffer || end > (addr_t)(fBuffer + kBufferSize)) in IsInBuffer()
372 if (fAfterLastEntry + needed > fBuffer + kBufferSize) { in _MakeSpace()
394 fAfterLastEntry->previous_size = fBuffer + kBufferSize - wrapEntry; in _MakeSpace()
619 if (entry->size > uint32(fBuffer + kBufferSize - entry)) { in _InitPreviousTracingData()
637 if ((uint32)(fBuffer + kBufferSize - entry) in _InitPreviousTracingData()
[all …]
H A Dcore_dump.cpp50 static const size_t kBufferSize = 1024 * 1024; variable
585 fCapacity = kBufferSize; in Init()
/haiku/src/system/kernel/arch/x86/
H A Darch_debug.cpp162 static const size_t kBufferSize = 256; in print_demangled_call() local
163 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call()
168 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call()
202 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
303 kBufferSize) < B_OK) { in print_demangled_call()
333 static const size_t kBufferSize = 256; in print_demangled_call() local
334 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call()
339 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call()
352 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
/haiku/headers/private/shared/
H A DSettingsHandler.h58 const int32 kBufferSize = 1024; variable
/haiku/src/system/boot/loader/file_systems/tarfs/
H A Dtarfs.cpp744 static const int kBufferSize = 2048; in _Inflate() local
745 char* in = (char*)malloc(kBufferSize); in _Inflate()
751 kBufferSize, // avail in in _Inflate()
771 ssize_t bytesRead = partition->ReadAt(cookie, offset, in, kBufferSize); in _Inflate()
/haiku/src/kits/shared/
H A DSettingsHandler.cpp80 fBuffer = new char [kBufferSize]; in ArgvParser()
162 if (fgets(fBuffer, kBufferSize, fFile) == 0) in GetCh()
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dcdda.cpp37 static const uint32 kBufferSize = 16384; variable
579 uint8 *buffer = (uint8 *)malloc(kBufferSize); in read_cdtext()
586 kBufferSize); in read_cdtext()
588 kBufferSize) != B_OK) { in read_cdtext()
/haiku/src/system/kernel/arch/riscv64/
H A Darch_debug.cpp170 static const size_t kBufferSize = 256; in print_demangled_call() local
171 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call()
176 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call()
189 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/
H A Dscsi_cd.cpp98 const size_t kBufferSize = blockSize * 4; in test_capacity() local
101 B_PRIu32", capacity %llu\n", kBufferSize, blockSize, in test_capacity()
124 (kBufferSize - 1 + B_PAGE_SIZE) / B_PAGE_SIZE, VM_PRIORITY_SYSTEM); in test_capacity()
126 for (size_t left = kBufferSize; numEntries < kMaxEntries && left > 0; in test_capacity()
/haiku/src/apps/debuganalyzer/model_loader/
H A DModelLoader.cpp554 const size_t kBufferSize = 1024 * 1024; in _ReadDebugEvents() local
555 void* buffer = malloc(kBufferSize); in _ReadDebugEvents()
562 ssize_t bytesRead = io->Read(buffer, kBufferSize); in _ReadDebugEvents()
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp319 static const size_t kBufferSize = 64; member in __anon7a06ab4d0111::BlockWriter
322 cached_block* fBuffer[kBufferSize];
1141 fCapacity(kBufferSize), in BlockWriter()
1184 memcpy(newBlocks, fBuffer, kBufferSize * sizeof(void*)); in Add()