Searched refs:bufSize (Results 1 - 19 of 19) sorted by relevance

/haiku/src/apps/soundrecorder/
H A DFileUtils.cpp35 size_t bufSize = src_stat.st_blksize; local
36 if (bufSize == 0)
37 bufSize = 32768;
39 char* buf = new (nothrow) char[bufSize];
44 printf("copy data, bufSize = %ld\n", bufSize);
47 ssize_t bytes = src.Read(buf, bufSize);
/haiku/src/system/boot/platform/efi/
H A Dserial.cpp43 size_t bufSize = 1; local
44 sEFISerialIO->Write(sEFISerialIO, &bufSize, &ch);
/haiku/src/add-ons/locale/catalogs/plaintext/
H A DCatalog.cpp345 static const int bufSize = 256; local
346 char buf[bufSize];
348 if (catalogFile.ReadAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0, &buf, bufSize)
355 &buf, bufSize) <= 0 || fLanguageName != buf) {
359 &buf, bufSize) <= 0 || fSignature != buf) {
/haiku/src/tools/locale/
H A DDefaultCatalog.cpp236 static const int bufSize = 256; local
237 char buf[bufSize];
240 bufSize) <= 0
246 &buf, bufSize) <= 0
252 &buf, bufSize) <= 0
/haiku/headers/os/device/
H A DJoystick.h42 size_t bufSize = B_OS_NAME_LENGTH);
H A DSerialPort.h107 size_t bufSize = B_OS_NAME_LENGTH);
/haiku/src/kits/locale/
H A DDefaultCatalog.cpp334 static const int bufSize = 256; local
335 char buf[bufSize];
338 bufSize) <= 0
344 &buf, bufSize) <= 0
350 &buf, bufSize) <= 0
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/
H A DPOP3.cpp576 const int bufSize = 1024 * 30; local
584 if (amountToReceive >= bufSize || amountToReceive <= 0)
585 amountToReceive = bufSize - 1;
588 char* buf = bufBString.LockBuffer(bufSize);
608 if (amountToReceive > bufSize - 1 - amountInBuffer)
609 amountToReceive = bufSize - 1 - amountInBuffer;
623 amountToReceive = bufSize - 1; // For next time, read a full buffer.
/haiku/src/kits/device/
H A DSerialPort.cpp510 \param bufSize The size of the buffer.
516 BSerialPort::GetDeviceName(int32 n, char *name, size_t bufSize) argument
525 strncpy(name, dev, bufSize);
526 name[bufSize - 1] = '\0';
H A DJoystick.cpp304 BJoystick::GetDeviceName(int32 index, char *name, size_t bufSize) argument
317 if (deviceName->Length() > (int32)bufSize)
320 strlcpy(name, deviceName->String(), bufSize);
/haiku/headers/os/storage/
H A DDirectory.h51 virtual int32 GetNextDirents(dirent *buf, size_t bufSize,
/haiku/src/tests/kits/storage/
H A DQueryTest.cpp1053 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
1054 char buffer[bufSize];
1056 while (query.GetNextDirents(ents, bufSize, 1) == 1) {
1068 CPPUNIT_ASSERT( query.GetNextDirents(ents, bufSize, 1) == 0 );
1076 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
1077 char buffer[bufSize];
1081 while (query.GetNextDirents(ents, bufSize, 1) == 1) {
1105 CPPUNIT_ASSERT( query.GetNextDirents(ents, bufSize, 1) == 0 );
1253 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
1254 char buffer[bufSize];
1266 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
1284 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
[all...]
H A DDirectoryTest.cpp1195 size_t bufSize = (sizeof(dirent) + B_FILE_NAME_LENGTH) * 10; local
1196 char buffer[bufSize];
1199 while (dir.GetNextDirents(ents, bufSize, 1) == 1)
1275 while (dir.GetNextDirents(ents, bufSize, 1) == 1)
1293 while (dir.GetNextDirents(ents, bufSize, 1) == 1) {
1319 CPPUNIT_ASSERT( dir.GetNextDirents(ents, bufSize, 1) == B_FILE_ERROR );
1330 CPPUNIT_ASSERT( dir.GetNextDirents(ents, bufSize, 1) == B_FILE_ERROR );
1341 CPPUNIT_ASSERT( equals(dir.GetNextDirents(NULL, bufSize, 1),
/haiku/headers/os/midi/
H A DMidiPort.h60 int32 n, char* name, size_t bufSize = B_OS_NAME_LENGTH);
/haiku/headers/build/os/storage/
H A DDirectory.h49 virtual int32 GetNextDirents(dirent *buf, size_t bufSize,
/haiku/src/kits/midi/
H A DMidiPort.cpp243 BMidiPort::GetDeviceName(int32 n, char* name, size_t bufSize) argument
250 if (size >= bufSize)
/haiku/src/build/libbe/storage/
H A DDirectory.cpp353 BDirectory::GetNextDirents(dirent* buf, size_t bufSize, int32 count) argument
359 return _kern_read_dir(fDirFd, buf, bufSize, count);
/haiku/src/kits/storage/
H A DDirectory.cpp373 BDirectory::GetNextDirents(dirent* buf, size_t bufSize, int32 count) argument
379 return _kern_read_dir(fDirFd, buf, bufSize, count);
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A DFUSEVolume.h210 char* buf, size_t bufSize, const char* name, int type,

Completed in 183 milliseconds