Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 25 of 70) sorted by relevance

123

/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Db64.cpp23 size_t dst_len = ((src_len + 2) / 3) * 4 + 1; in main() local
24 char dst[dst_len]; in main()
26 dst, dst_len); in main()
31 unsigned char target[dst_len]; in main()
32 res = b64_pton(dst, target, dst_len); in main()
39 assert(((src_len + 2) / 3) * 4 + 1 < dst_len); in main()
41 dst, dst_len); in main()
47 res = b64_pton(dst, target, dst_len); in main()
59 size_t dst_len = ((src_len + 2) / 3) * 4 + 1; in main() local
60 char dst[dst_len]; in main()
[all …]
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Db64.cpp13 size_t dst_len = ((src_len + 2) / 3) * 4 + 1; in main() local
14 char dst[dst_len]; in main()
16 dst_len); in main()
21 unsigned char target[dst_len]; in main()
22 res = b64_pton(dst, target, dst_len); in main()
29 assert(((src_len + 2) / 3) * 4 + 1 < dst_len); in main()
31 dst_len); in main()
37 res = b64_pton(dst, target, dst_len); in main()
/llvm-project-15.0.7/lldb/source/API/
H A DSBFileSpec.cpp99 size_t dst_len) { in ResolvePath() argument
100 LLDB_INSTRUMENT_VA(src_path, dst_path, dst_len); in ResolvePath()
104 ::snprintf(dst_path, dst_len, "%s", result.c_str()); in ResolvePath()
105 return std::min(dst_len - 1, result.size()); in ResolvePath()
140 uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { in GetPath()
141 LLDB_INSTRUMENT_VA(this, dst_path, dst_len); in GetPath()
143 uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); in GetPath()
145 if (result == 0 && dst_path && dst_len > 0) in GetPath()
H A DSBCommunication.cpp103 size_t SBCommunication::Read(void *dst, size_t dst_len, uint32_t timeout_usec, in Read() argument
105 LLDB_INSTRUMENT_VA(this, dst, dst_len, timeout_usec, status); in Read()
112 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read()
H A DSBStructuredData.cpp183 size_t SBStructuredData::GetStringValue(char *dst, size_t dst_len) const { in GetStringValue()
184 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetStringValue()
186 return m_impl_up->GetStringValue(dst, dst_len); in GetStringValue()
H A DSBProcess.cpp260 size_t SBProcess::GetSTDOUT(char *dst, size_t dst_len) const { in GetSTDOUT()
261 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetSTDOUT()
267 bytes_read = process_sp->GetSTDOUT(dst, dst_len, error); in GetSTDOUT()
273 size_t SBProcess::GetSTDERR(char *dst, size_t dst_len) const { in GetSTDERR()
274 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetSTDERR()
280 bytes_read = process_sp->GetSTDERR(dst, dst_len, error); in GetSTDERR()
286 size_t SBProcess::GetAsyncProfileData(char *dst, size_t dst_len) const { in GetAsyncProfileData()
287 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetAsyncProfileData()
293 bytes_read = process_sp->GetAsyncProfileData(dst, dst_len, error); in GetAsyncProfileData()
801 size_t SBProcess::ReadMemory(addr_t addr, void *dst, size_t dst_len, in ReadMemory() argument
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DMemory.cpp126 size_t MemoryCache::Read(addr_t addr, void *dst, size_t dst_len, in Read() argument
128 size_t bytes_left = dst_len; in Read()
139 AddrRange read_range(addr, dst_len); in Read()
147 dst_len); in Read()
148 return dst_len; in Read()
159 if (dst && dst_len > m_L2_cache_line_byte_size) { in Read()
179 return dst_len - bytes_left; in Read()
190 memcpy(dst_buf + dst_len - bytes_left, in Read()
219 return dst_len - bytes_left; in Read()
234 return dst_len - bytes_left; in Read()
[all …]
H A DRegisterContext.cpp328 const uint32_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local
330 if (src_len > dst_len) { in ReadRegisterValueFromMemory()
333 reg_info->name, dst_len); in ReadRegisterValueFromMemory()
369 const RegisterInfo *reg_info, lldb::addr_t dst_addr, uint32_t dst_len, in WriteRegisterValueToMemory() argument
383 reg_info, dst, dst_len, process_sp->GetByteOrder(), error); in WriteRegisterValueToMemory()
/llvm-project-15.0.7/lldb/source/Core/
H A DCommunication.cpp123 size_t Communication::Read(void *dst, size_t dst_len, in Read() argument
130 this, dst, dst_len, timeout, m_connection_sp.get()); in Read()
134 size_t cached_bytes = GetCachedBytes(dst, dst_len); in Read()
154 return GetCachedBytes(dst, dst_len); in Read()
168 return ReadFromConnection(dst, dst_len, timeout, status, error_ptr); in Read()
259 size_t Communication::GetCachedBytes(void *dst, size_t dst_len) { in GetCachedBytes() argument
267 const size_t len = std::min<size_t>(dst_len, m_bytes.size()); in GetCachedBytes()
298 size_t Communication::ReadFromConnection(void *dst, size_t dst_len, in ReadFromConnection() argument
304 return connection_sp->Read(dst, dst_len, timeout, status, error_ptr); in ReadFromConnection()
H A DEmulateInstruction.cpp157 void *dst, size_t dst_len) { in ReadMemory() argument
159 return m_read_mem_callback(this, m_baton, context, addr, dst, dst_len) == in ReadMemory()
160 dst_len; in ReadMemory()
250 size_t dst_len) { in ReadMemoryFrame() argument
251 if (baton == nullptr || dst == nullptr || dst_len == 0) in ReadMemoryFrame()
259 return process_sp->ReadMemory(addr, dst, dst_len, error); in ReadMemoryFrame()
/llvm-project-15.0.7/lldb/unittests/Process/gdb-remote/
H A DGDBRemoteTestUtils.h32 MOCK_METHOD5(Read, size_t(void *dst, size_t dst_len,
43 size_t Write(const void *dst, size_t dst_len, lldb::ConnectionStatus &status, in Write() argument
45 m_packets->emplace_back(static_cast<const char *>(dst), dst_len); in Write()
46 return dst_len; in Write()
/llvm-project-15.0.7/lldb/source/Utility/
H A DDataExtractor.cpp701 assert(dst_len > 0); in CopyByteOrderedData()
705 assert(dst_byte_order == m_byte_order || dst_len == 1 || dst_len == 2 || in CopyByteOrderedData()
706 dst_len == 4 || dst_len == 8 || dst_len == 10 || dst_len == 16 || in CopyByteOrderedData()
707 dst_len == 32); in CopyByteOrderedData()
718 if (dst_len >= src_len) { in CopyByteOrderedData()
754 ::memcpy(dst, src + (src_len - dst_len), dst_len); in CopyByteOrderedData()
757 for (uint32_t i = 0; i < dst_len; ++i) in CopyByteOrderedData()
758 dst[i] = src[dst_len - 1 - i]; in CopyByteOrderedData()
764 for (uint32_t i = 0; i < dst_len; ++i) in CopyByteOrderedData()
768 ::memcpy(dst, src, dst_len); in CopyByteOrderedData()
[all …]
H A DRegisterValue.cpp39 uint32_t dst_len, in GetAsMemoryData() argument
56 if (dst_len > kMaxRegisterByteSize) { in GetAsMemoryData()
75 dst_len, // dst length in GetAsMemoryData()
115 const uint32_t dst_len = reg_info->byte_size; in SetFromMemoryData() local
117 if (src_len > dst_len) { in SetFromMemoryData()
120 reg_info->name, dst_len); in SetFromMemoryData()
/llvm-project-15.0.7/lldb/source/Plugins/UnwindAssembly/InstEmulation/
H A DUnwindAssemblyInstEmulation.cpp384 size_t dst_len) { in ReadMemory() argument
392 addr, dst, (uint64_t)dst_len); in ReadMemory()
396 memset(dst, 0, dst_len); in ReadMemory()
397 return dst_len; in ReadMemory()
403 const void *dst, size_t dst_len) { in WriteMemory() argument
404 if (baton && dst && dst_len) in WriteMemory()
406 ->WriteMemory(instruction, context, addr, dst, dst_len); in WriteMemory()
412 lldb::addr_t addr, const void *dst, size_t dst_len) { in WriteMemory() argument
413 DataExtractor data(dst, dst_len, in WriteMemory()
423 DumpDataExtractor(data, &strm, 0, eFormatBytes, 1, dst_len, UINT32_MAX, in WriteMemory()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DCommunication.h191 size_t Read(void *dst, size_t dst_len, const Timeout<std::micro> &timeout,
334 size_t ReadFromConnection(void *dst, size_t dst_len,
375 size_t GetCachedBytes(void *dst, size_t dst_len);
H A DStructuredDataImpl.h143 size_t GetStringValue(char *dst, size_t dst_len) const { in GetStringValue() argument
151 if (!dst || !dst_len) { in GetStringValue()
155 return (::snprintf(dst, dst_len, "%s", result.data())); in GetStringValue()
/llvm-project-15.0.7/lldb/bindings/lua/
H A Dlua-typemaps.swig78 %typemap(in) (char *dst, size_t dst_len) {
88 %typemap(in) (void *char_buf, size_t size) = (char *dst, size_t dst_len);
91 %typemap(in) (void *buf, size_t size) = (char *dst, size_t dst_len);
94 %typemap(argout) (char *dst, size_t dst_len) {
107 %typemap(argout) (void *char_buf, size_t size) = (char *dst, size_t dst_len);
110 %typemap(argout) (void *buf, size_t size) = (char *dst, size_t dst_len);
116 %typemap(in) (char *dst_or_null, size_t dst_len) {
124 %typemap(argout) (char *dst_or_null, size_t dst_len) {
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DStdStringExtractor.cpp248 size_t StdStringExtractor::GetHexBytes(void *dst_void, size_t dst_len, in GetHexBytes() argument
252 while (bytes_extracted < dst_len && GetBytesLeft()) { in GetHexBytes()
260 for (size_t i = bytes_extracted; i < dst_len; ++i) in GetHexBytes()
270 size_t StdStringExtractor::GetHexBytesAvail(void *dst_void, size_t dst_len) { in GetHexBytesAvail() argument
273 while (bytes_extracted < dst_len) { in GetHexBytesAvail()
H A DStdStringExtractor.h80 size_t GetHexBytes(void *dst, size_t dst_len, uint8_t fail_fill_value);
82 size_t GetHexBytesAvail(void *dst, size_t dst_len);
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DConnection.h118 virtual size_t Read(void *dst, size_t dst_len,
142 virtual size_t Write(const void *dst, size_t dst_len,
/llvm-project-15.0.7/lldb/bindings/interface/
H A DSBFileSpec.i72 GetPath (char *dst_path, size_t dst_len) const;
75 ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
/llvm-project-15.0.7/lldb/source/Host/macosx/cfcpp/
H A DCFCBundle.cpp43 bool CFCBundle::GetPath(char *dst, size_t dst_len) { in GetPath() argument
51 (UInt8 *)dst, dst_len) != 0; in GetPath()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DNativeRegisterContext.cpp345 const size_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local
347 if (src_len > dst_len) { in ReadRegisterValueFromMemory()
352 static_cast<uint64_t>(dst_len)); in ReadRegisterValueFromMemory()
386 const RegisterInfo *reg_info, lldb::addr_t dst_addr, size_t dst_len, in WriteRegisterValueToMemory() argument
399 reg_info, dst, dst_len, process.GetByteOrder(), error); in WriteRegisterValueToMemory()
/llvm-project-15.0.7/lldb/include/lldb/API/
H A DSBFileSpec.h51 uint32_t GetPath(char *dst_path, size_t dst_len) const;
53 static int ResolvePath(const char *src_path, char *dst_path, size_t dst_len);
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/JIT/
H A DObjectFileJIT.cpp205 size_t dst_len) { in ReadSectionData() argument
209 if (src_len > dst_len) in ReadSectionData()
210 src_len = dst_len; in ReadSectionData()

123