Home
last modified time | relevance | path

Searched refs:GetBytes (Results 1 – 25 of 88) sorted by relevance

1234

/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCClassDescriptorV2.cpp62 DataExtractor extractor(objc_class_buf.GetBytes(), objc_class_size, in Read()
97 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
102 DataExtractor extractor(buffer.GetBytes(), size, process->GetByteOrder(), in Read()
137 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
142 DataExtractor extractor(buffer.GetBytes(), size, process->GetByteOrder(), in Read()
164 process->ReadCStringFromMemory(m_name_ptr, (char *)name_buf.GetBytes(), in Read()
171 m_name.assign((char *)name_buf.GetBytes()); in Read()
224 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
247 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
277 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
[all …]
H A DAppleObjCRuntimeV1.cpp239 name_ptr, (char *)buffer_sp->GetBytes(), 1024, error); in Initialize()
247 m_name = ConstString((char *)buffer_sp->GetBytes()); in Initialize()
358 if (process->ReadMemory(hash_table_ptr, buffer.GetBytes(), 20, error) == in UpdateISAToDescriptorMapIfNeeded()
362 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), byte_order, in UpdateISAToDescriptorMapIfNeeded()
374 if (process->ReadMemory(buckets_ptr, buffer.GetBytes(), data_size, in UpdateISAToDescriptorMapIfNeeded()
376 data.SetData(buffer.GetBytes(), buffer.GetByteSize(), byte_order); in UpdateISAToDescriptorMapIfNeeded()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Utility/
H A DDataBuffer.h65 virtual uint8_t *GetBytes() = 0;
74 virtual const uint8_t *GetBytes() const = 0;
85 return llvm::ArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
89 return llvm::MutableArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
H A DDataBufferLLVM.h31 uint8_t *GetBytes() override;
32 const uint8_t *GetBytes() const override;
35 char *GetChars() { return reinterpret_cast<char *>(GetBytes()); } in GetChars()
H A DDataBufferHeap.h77 uint8_t *GetBytes() override;
82 const uint8_t *GetBytes() const override;
/freebsd-12.1/contrib/llvm/tools/lldb/source/Core/
H A DValue.cpp67 (rhs_value == (uintptr_t)v.m_data_buffer.GetBytes())) { in Value()
68 m_data_buffer.CopyData(v.m_data_buffer.GetBytes(), in Value()
71 m_value = (uintptr_t)m_data_buffer.GetBytes(); in Value()
86 (rhs_value == (uintptr_t)rhs.m_data_buffer.GetBytes())) { in operator =()
87 m_data_buffer.CopyData(rhs.m_data_buffer.GetBytes(), in operator =()
90 m_value = (uintptr_t)m_data_buffer.GetBytes(); in operator =()
99 m_value = (uintptr_t)m_data_buffer.GetBytes(); in SetBytes()
105 m_value = (uintptr_t)m_data_buffer.GetBytes(); in AppendBytes()
177 const uint8_t *src = rhs.GetBuffer().GetBytes(); in AppendDataToHostBuffer()
182 ::memcpy(m_data_buffer.GetBytes() + curr_size, src, src_len); in AppendDataToHostBuffer()
[all …]
H A DSourceManager.cpp473 return (const char *)m_data_sp->GetBytes() + line_offset; in PeekLineData()
491 (const char *)m_data_sp->GetBytes() + start_offset; in GetLineLength()
574 const uint8_t *cstr = m_data_sp->GetBytes() + start_line_offset; in DisplaySourceLines()
632 const char *start = (char *)m_data_sp->GetBytes(); in CalculateLineOffsets()
682 buffer.assign((char *)m_data_sp->GetBytes() + start_offset, in GetLine()
/freebsd-12.1/contrib/llvm/tools/lldb/source/DataFormatters/
H A DStringPrinter.cpp311 utf8_data_ptr = (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpUTFBufferToStream()
320 (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpUTFBufferToStream()
355 auto printable_bytes = printable.GetBytes(); in DumpUTFBufferToStream()
443 options.GetLocation(), (char *)buffer_sp->GetBytes(), size, my_error); in ReadStringAndDumpToStream()
456 uint8_t *data_end = buffer_sp->GetBytes() + buffer_sp->GetByteSize(); in ReadStringAndDumpToStream()
475 for (uint8_t *data = buffer_sp->GetBytes(); *data && (data < data_end);) { in ReadStringAndDumpToStream()
479 auto printable_bytes = printable.GetBytes(); in ReadStringAndDumpToStream()
559 if (!buffer_sp->GetBytes()) in ReadUTFBufferAndDumpToStream()
563 char *buffer = reinterpret_cast<char *>(buffer_sp->GetBytes()); in ReadUTFBufferAndDumpToStream()
570 (char *)buffer_sp->GetBytes(), in ReadUTFBufferAndDumpToStream()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DMaterializer.cpp365 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
389 map.ReadMemory(data.GetBytes(), target_address, in DumpToLog()
645 !memcmp(m_original_data->GetBytes(), data.GetDataStart(), in Dematerialize()
697 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
702 DataExtractor extractor(data.GetBytes(), data.GetByteSize(), in DumpToLog()
727 map.ReadMemory(data.GetBytes(), m_temporary_allocation, in DumpToLog()
970 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
975 DataExtractor extractor(data.GetBytes(), data.GetByteSize(), in DumpToLog()
1000 map.ReadMemory(data.GetBytes(), m_temporary_allocation, in DumpToLog()
1135 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
[all …]
H A DIRMemoryMap.cpp550 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
558 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
679 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
693 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
724 ReadMemory(buf.GetBytes(), process_address, size, error); in ReadScalarFromMemory()
729 DataExtractor extractor(buf.GetBytes(), buf.GetByteSize(), GetByteOrder(), in ReadScalarFromMemory()
817 allocation.m_data.GetBytes(), in GetMemoryData()
822 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
834 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
H A DIRInterpreter.cpp218 if (!cast_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in AssignValue()
224 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in AssignValue()
352 if (!resolved_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in ResolveConstant()
358 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in ResolveConstant()
391 m_execution_unit.ReadMemory(buf.GetBytes(), addr, length, read_error); in PrintData()
400 ss.Printf("%02hhx - ", buf.GetBytes()[i]); in PrintData()
402 ss.Printf("%02hhx ", buf.GetBytes()[i]); in PrintData()
1363 execution_unit.ReadMemory(buffer.GetBytes(), R, buffer.GetByteSize(), in Interpret()
1374 execution_unit.WriteMemory(D, buffer.GetBytes(), buffer.GetByteSize(), in Interpret()
1456 execution_unit.ReadMemory(buffer.GetBytes(), D, buffer.GetByteSize(), in Interpret()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Utility/
H A DDataBufferLLVM.cpp30 uint8_t *DataBufferLLVM::GetBytes() { in GetBytes() function in DataBufferLLVM
34 const uint8_t *DataBufferLLVM::GetBytes() const { in GetBytes() function in DataBufferLLVM
H A DDataBufferHeap.cpp45 uint8_t *DataBufferHeap::GetBytes() { in GetBytes() function in DataBufferHeap
53 const uint8_t *DataBufferHeap::GetBytes() const { in GetBytes() function in DataBufferHeap
H A DDataEncoder.cpp80 const uint8_t *data_bytes = data->GetBytes(); in GetSharedDataOffset()
134 m_start = data_sp->GetBytes() + data_offset; in SetData()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/
H A DRegisterContextPOSIXProcessMonitor_x86.cpp280 value.GetBytes(), value.GetByteSize()); in WriteRegister()
284 value.GetBytes(), value.GetByteSize()); in WriteRegister()
288 value.GetBytes(), value.GetByteSize()); in WriteRegister()
297 value.GetBytes(), value.GetByteSize()); in WriteRegister()
349 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
381 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DRegisterContextPOSIXProcessMonitor_mips64.cpp165 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
179 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Language/ObjC/
H A DNSSet.cpp497 *((uint32_t *)buffer.GetBytes()) = (uint32_t)set_item.item_ptr; in GetChildAtIndex()
500 *((uint64_t *)buffer.GetBytes()) = (uint64_t)set_item.item_ptr; in GetChildAtIndex()
508 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), in GetChildAtIndex()
664 *((uint32_t *)buffer.GetBytes()) = (uint32_t)set_item.item_ptr; in GetChildAtIndex()
667 *((uint64_t *)buffer.GetBytes()) = (uint64_t)set_item.item_ptr; in GetChildAtIndex()
675 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), in GetChildAtIndex()
H A DNSDictionary.cpp643 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
647 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
720 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
724 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
887 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
891 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1045 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1049 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/
H A DRegisterContextMemory.cpp113 if (process_sp->ReadMemory(m_reg_data_addr, data_sp->GetBytes(), in ReadAllRegisterValues()
131 if (process_sp->WriteMemory(m_reg_data_addr, data_sp->GetBytes(), in WriteAllRegisterValues()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ABI/SysV-ppc64/
H A DABISysV_ppc64.cpp740 if (!vr_val[i].GetAsMemoryData(vr[i], vr_data->GetBytes() + i * vr_size, in GetVectorValueObject()
755 memcpy(m_data_ap->GetBytes(), vr_data->GetBytes() + offs, m_byte_size); in GetVectorValueObject()
769 size_t rc = m_process_sp->ReadMemory(addr, m_data_ap->GetBytes(), in GetStructValueObject()
807 m_data_ap->GetBytes() + m_dst_offs, *elem_size, m_byte_order, error); in GetStructValueObject()
891 if (!ExtractFromRegs(m_src_offs, n, m_data_ap->GetBytes() + m_dst_offs)) in ExtractField()
901 if (!ExtractFromRegs(m_src_offs, size, m_data_ap->GetBytes() + m_dst_offs)) in ExtractField()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ABI/SysV-mips64/
H A DABISysV_mips64.cpp885 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
889 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
894 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
899 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
1023 data_sp->GetBytes() + (field_bit_offset / 8), *field_byte_width, in GetReturnValueObjectImpl()
1105 r2_info, data_sp->GetBytes(), r2_info->byte_size, target_byte_order, in GetReturnValueObjectImpl()
1114 r3_info, data_sp->GetBytes() + r2_info->byte_size, in GetReturnValueObjectImpl()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Target/
H A DMemory.cpp148 memcpy(dst, pos->second->GetBytes() + addr - chunk_range.GetRangeBase(), in Read()
193 pos->second->GetBytes() + cache_offset, curr_read_size); in Read()
211 memcpy(dst_buf + dst_len - bytes_left, pos->second->GetBytes(), in Read()
233 curr_addr, data_buffer_heap_ap->GetBytes(), in Read()
/freebsd-12.1/contrib/llvm/tools/lldb/source/API/
H A DSBModuleSpec.cpp85 return m_opaque_ap->GetUUID().GetBytes().data(); in GetUUIDBytes()
89 return m_opaque_ap->GetUUID().GetBytes().size(); in GetUUIDLength()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectMemory.cpp657 if (data_sp->GetBytes() == nullptr) { in DoExecute()
667 bytes_read = target->ReadMemory(address, false, data_sp->GetBytes(), in DoExecute()
698 if (data_sp->GetBytes() == nullptr) { in DoExecute()
706 uint8_t *data_ptr = data_sp->GetBytes(); in DoExecute()
744 data_sp.reset(new DataBufferHeap(data_sp->GetBytes(), bytes_read + 1)); in DoExecute()
774 outfile_stream.Write(data_sp->GetBytes(), bytes_read); in DoExecute()
1113 found_location = FastSearch(found_location, high_addr, buffer.GetBytes(), in DoExecute()
1129 dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), error); in DoExecute()
1131 DataExtractor data(dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), in DoExecute()
1370 process->WriteMemory(addr, data_sp->GetBytes(), length, error); in DoExecute()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/NetBSD/
H A DNativeRegisterContextNetBSD_x86_64.cpp596 reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
607 reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
626 reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
662 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
700 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()

1234