Home
last modified time | relevance | path

Searched refs:kBufSize (Results 1 – 25 of 51) sorted by relevance

123

/external/compiler-rt/test/asan/TestCases/Linux/
Drecvfrom.cc26 const int kBufSize = 10; variable
31 const char buf[kBufSize / 2] = {0, }; in client_thread_udp()
33 const char buf[kBufSize] = {0, }; in client_thread_udp()
41 succeeded = sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, in client_thread_udp()
51 char buf[kBufSize / 2]; in main()
53 char buf[kBufSize]; in main()
73 recvfrom(sockfd, buf, kBufSize, 0, NULL, NULL); // BOOM in main()
/external/perfetto/src/base/
Dfile_utils.cc27 constexpr size_t kBufSize = 2048; variable
46 if (out->size() < i + kBufSize) in ReadFile()
47 out->resize(out->size() + kBufSize); in ReadFile()
49 bytes_read = PERFETTO_EINTR(read(fd.get(), &((*out)[i]), kBufSize)); in ReadFile()
/external/compiler-rt/test/msan/Linux/
Dsendmsg.cc28 const int kBufSize = 10; variable
33 char buf[kBufSize] = {0}; in main()
67 ret = send(sockfd, buf, kBufSize, 0); in main()
72 sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, addrlen); in main()
Dcmsghdr.cc25 const int kBufSize = 10; variable
29 char buf[kBufSize] = {0}; in main()
/external/lzma/CPP/Windows/
DCommonDialog.cpp114 const unsigned kBufSize = MAX_PATH * 2; in MyGetOpenFileName() local
121 CHAR buf[kBufSize]; in MyGetOpenFileName()
139 p.nMaxFile = kBufSize; in MyGetOpenFileName()
151 WCHAR buf[kBufSize]; in MyGetOpenFileName()
170 p.nMaxFile = kBufSize; in MyGetOpenFileName()
DRegistry.cpp80 const UInt32 kBufSize = MAX_PATH + 1; // 256 in ATL in RecurseDeleteKey() local
81 DWORD size = kBufSize; in RecurseDeleteKey()
82 TCHAR buffer[kBufSize]; in RecurseDeleteKey()
88 size = kBufSize; in RecurseDeleteKey()
322 const unsigned kBufSize = MAX_PATH + 1; // 256 in ATL in EnumKeys() local
324 UInt32 nameSize = kBufSize; in EnumKeys()
325 LONG result = ::RegEnumKeyEx(_object, index, keyName.GetBuf(kBufSize), in EnumKeys()
327 keyName.ReleaseBuf_CalcLen(kBufSize); in EnumKeys()
DFileLink.cpp368 const unsigned kBufSize = MAXIMUM_REPARSE_DATA_BUFFER_SIZE; in GetReparseData() local
369 CByteArr buf(kBufSize); in GetReparseData()
371 if (!file.DeviceIoControlOut(my_FSCTL_GET_REPARSE_POINT, buf, kBufSize, &returnedSize)) in GetReparseData()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cc13 const size_t kBufSize = 0x10000; in CopyFdToFd() local
14 static char buf[kBufSize]; in CopyFdToFd()
16 ssize_t got = read(in_fd, buf, kBufSize); in CopyFdToFd()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetDetector.java97 private static final int kBufSize = 8000; field in CharsetDetector
117 fInputStream.mark(kBufSize); in setText()
118 fRawInput = new byte[kBufSize]; // Always make a new buffer because the in setText()
122 int remainingLength = kBufSize; in setText()
394 if (limit > kBufSize) { in MungeInput()
395 limit = kBufSize; in MungeInput()
429 new byte[kBufSize]; // removed if appropriate.
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetDetector.java92 private static final int kBufSize = 8000; field in CharsetDetector
110 fInputStream.mark(kBufSize); in setText()
111 fRawInput = new byte[kBufSize]; // Always make a new buffer because the in setText()
115 int remainingLength = kBufSize; in setText()
373 if (limit > kBufSize) { in MungeInput()
374 limit = kBufSize; in MungeInput()
408 new byte[kBufSize]; // removed if appropriate.
/external/tensorflow/tensorflow/compiler/aot/
Dbenchmark.cc74 const int kBufSize = 1000; in DumpStatsToStdout() local
75 char buf[kBufSize]; in DumpStatsToStdout()
76 snprintf(buf, kBufSize, "Mean with %2.0f%% trimmed:", trim_ratio * 100); in DumpStatsToStdout()
78 snprintf(buf, kBufSize, "Mean of %2.0f%% best:", best_ratio * 100); in DumpStatsToStdout()
/external/tensorflow/tensorflow/contrib/lite/toco/graph_transformations/tests/
Dresolve_constant_concatenation_test.cc117 const int kBufSize = 8; in PrepareModel() local
119 static float in_buf[kNumArrays][kBufSize] = { in PrepareModel()
137 in_array_buffer.data.resize(kBufSize); in PrepareModel()
140 std::copy(in_buf[cnt], in_buf[cnt] + kBufSize, buf_ptr); in PrepareModel()
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer_unittest.cc110 const size_t kBufSize = 64 * 1024; in TEST() local
111 scoped_array<char> buf(new char[kBufSize]); in TEST()
112 ASSERT_GT(read(err_fd, buf.get(), kBufSize), 0); in TEST()
/external/lzma/CPP/7zip/Compress/
DCopyCoder.cpp11 static const UInt32 kBufSize = 1 << 17; variable
25 _buf = (Byte *)::MidAlloc(kBufSize); in Code()
34 UInt32 size = kBufSize; in Code()
DPpmdDecoder.cpp16 static const UInt32 kBufSize = (1 << 20); variable
100 _outBuf = (Byte *)::MidAlloc(kBufSize); in Code()
111 HRESULT res = CodeSpec(_outBuf, kBufSize); in Code()
DPpmdEncoder.cpp15 static const UInt32 kBufSize = (1 << 20); variable
111 _inBuf = (Byte *)::MidAlloc(kBufSize); in Code()
130 RINOK(inStream->Read(_inBuf, kBufSize, &size)); in Code()
/external/webrtc/webrtc/p2p/base/
Dasyncstuntcpsocket.cc26 static const size_t kBufSize = kMaxPacketSize + kStunHeaderSize; variable
48 : rtc::AsyncTCPSocketBase(socket, listen, kBufSize) { in AsyncStunTCPSocket()
53 if (cb > kBufSize || cb < kPacketLenSize + kPacketLenOffset) { in Send()
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dprocess_memory_stats.cc54 const size_t kBufSize = 8u * 1024 * 1024; in ReadFullStats() local
55 std::unique_ptr<char[]> buf(new char[kBufSize]); in ReadFullStats()
56 ssize_t rsize = file_utils::ReadProcFile(pid, "smaps", &buf[0], kBufSize); in ReadFullStats()
/external/webrtc/webrtc/base/
Dstream_unittest.cc80 const size_t kBufSize = sizeof(buffer); in SeekTest() local
82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest()
83 EXPECT_EQ(bytes, kBufSize); in SeekTest()
84 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value)); in SeekTest()
90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest()
91 EXPECT_EQ(bytes, kBufSize); in SeekTest()
92 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value + 7)); in SeekTest()
Dasynctcpsocket.cc30 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize; variable
246 : AsyncTCPSocketBase(socket, listen, kBufSize) { in AsyncTCPSocket()
251 if (cb > kBufSize) { in Send()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_utility.cpp75 const size_t kBufSize = 4; in GetHeaderOffset() local
76 uint8_t buf[kBufSize]; in GetHeaderOffset()
78 if (!pFile->ReadBlock(buf, offset, kBufSize)) in GetHeaderOffset()
/external/tensorflow/tensorflow/contrib/lite/toco/
Dtoco_port.cc170 const int kBufSize = 1 << 16; in GetContents() local
171 char buffer[kBufSize]; in GetContents()
173 int size = read(fd, buffer, kBufSize); in GetContents()
/external/lzma/CPP/7zip/Archive/
DLzmaHandler.cpp332 const UInt32 kBufSize = 1 + 5 + 8 + 2; in Open() local
333 Byte buf[kBufSize]; in Open()
335 RINOK(ReadStream_FALSE(inStream, buf, kBufSize)); in Open()
467 const UInt32 kBufSize = 1 + 5 + 8; in Extract() local
468 Byte buf[kBufSize]; in Extract()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc302 const sptr kBufSize = 4095; in DumpProcessMap() local
303 char *filename = (char*)MmapOrDie(kBufSize, __func__); in DumpProcessMap()
306 filename, kBufSize, /* protection */nullptr)) { in DumpProcessMap()
310 UnmapOrDie(filename, kBufSize); in DumpProcessMap()
/external/boringssl/src/tool/
Ddigest.cc134 static const size_t kBufSize = 8192; in SumFile() local
135 std::unique_ptr<uint8_t[]> buf(new uint8_t[kBufSize]); in SumFile()
147 n = BORINGSSL_READ(fd, buf.get(), kBufSize); in SumFile()

123