Home
last modified time | relevance | path

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

1234

/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Utility/
H A DDataBuffer.h58 virtual uint8_t *GetBytes() = 0;
65 virtual const uint8_t *GetBytes() const = 0;
74 return llvm::ArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
78 return llvm::MutableArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
87 uint8_t *GetBytes() override { return m_bytes; } in GetBytes() function
88 const uint8_t *GetBytes() const override { return m_bytes; } in GetBytes() function
H A DDataBufferLLVM.h30 uint8_t *GetBytes() override;
31 const uint8_t *GetBytes() const override;
34 char *GetChars() { return reinterpret_cast<char *>(GetBytes()); } in GetChars()
H A DDataBufferHeap.h64 uint8_t *GetBytes() override;
67 const uint8_t *GetBytes() const override;
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCClassDescriptorV2.cpp60 DataExtractor extractor(objc_class_buf.GetBytes(), objc_class_size, in Read()
95 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
115 process->ReadMemory(m_ro_ptr ^ 1, buffer.GetBytes(), ptr_size, error); in Read()
119 DataExtractor extractor(buffer.GetBytes(), ptr_size, in Read()
147 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
174 process->ReadCStringFromMemory(m_name_ptr, (char *)name_buf.GetBytes(), in Read()
181 m_name.assign((char *)name_buf.GetBytes()); in Read()
234 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
263 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
312 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()
356 if (process->ReadMemory(hash_table_ptr, buffer.GetBytes(), 20, error) == in UpdateISAToDescriptorMapIfNeeded()
360 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), byte_order, in UpdateISAToDescriptorMapIfNeeded()
372 if (process->ReadMemory(buckets_ptr, buffer.GetBytes(), data_size, in UpdateISAToDescriptorMapIfNeeded()
374 data.SetData(buffer.GetBytes(), buffer.GetByteSize(), byte_order); in UpdateISAToDescriptorMapIfNeeded()
/freebsd-13.1/contrib/llvm-project/lldb/source/Core/
H A DValue.cpp62 (rhs_value == (uintptr_t)v.m_data_buffer.GetBytes())) { in Value()
63 m_data_buffer.CopyData(v.m_data_buffer.GetBytes(), in Value()
66 m_value = (uintptr_t)m_data_buffer.GetBytes(); in Value()
80 (rhs_value == (uintptr_t)rhs.m_data_buffer.GetBytes())) { in operator =()
81 m_data_buffer.CopyData(rhs.m_data_buffer.GetBytes(), in operator =()
84 m_value = (uintptr_t)m_data_buffer.GetBytes(); in operator =()
93 m_value = (uintptr_t)m_data_buffer.GetBytes(); in SetBytes()
99 m_value = (uintptr_t)m_data_buffer.GetBytes(); in AppendBytes()
162 const uint8_t *src = rhs.GetBuffer().GetBytes(); in AppendDataToHostBuffer()
167 ::memcpy(m_data_buffer.GetBytes() + curr_size, src, src_len); in AppendDataToHostBuffer()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Expression/
H A DMaterializer.cpp352 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
377 map.ReadMemory(data.GetBytes(), target_address, in DumpToLog()
640 !memcmp(m_original_data->GetBytes(), data.GetDataStart(), in Dematerialize()
692 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
697 DataExtractor extractor(data.GetBytes(), data.GetByteSize(), in DumpToLog()
722 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()
1139 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
[all …]
H A DIRMemoryMap.cpp551 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
559 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
681 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
695 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
727 ReadMemory(buf.GetBytes(), process_address, size, error); in ReadScalarFromMemory()
732 DataExtractor extractor(buf.GetBytes(), buf.GetByteSize(), GetByteOrder(), in ReadScalarFromMemory()
820 allocation.m_data.GetBytes(), in GetMemoryData()
825 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
837 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
H A DIRInterpreter.cpp219 if (!cast_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in AssignValue()
225 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in AssignValue()
355 if (!resolved_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in ResolveConstant()
361 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in ResolveConstant()
394 m_execution_unit.ReadMemory(buf.GetBytes(), addr, length, read_error); in PrintData()
403 ss.Printf("%02hhx - ", buf.GetBytes()[i]); in PrintData()
405 ss.Printf("%02hhx ", buf.GetBytes()[i]); in PrintData()
1229 execution_unit.ReadMemory(buffer.GetBytes(), R, buffer.GetByteSize(), in Interpret()
1239 execution_unit.WriteMemory(D, buffer.GetBytes(), buffer.GetByteSize(), in Interpret()
1308 execution_unit.ReadMemory(buffer.GetBytes(), D, buffer.GetByteSize(), in Interpret()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Utility/
H A DDataBufferLLVM.cpp26 uint8_t *DataBufferLLVM::GetBytes() { in GetBytes() function in DataBufferLLVM
30 const uint8_t *DataBufferLLVM::GetBytes() const { in GetBytes() function in DataBufferLLVM
H A DDataBufferHeap.cpp34 uint8_t *DataBufferHeap::GetBytes() { in GetBytes() function in DataBufferHeap
40 const uint8_t *DataBufferHeap::GetBytes() const { in GetBytes() function in DataBufferHeap
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DNativeRegisterContextFreeBSD_mips64.cpp128 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
143 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
168 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_arm.cpp136 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
155 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
180 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_powerpc.cpp223 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
242 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
267 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_arm64.cpp145 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
164 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
189 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
/freebsd-13.1/contrib/llvm-project/lldb/source/DataFormatters/
H A DStringPrinter.cpp47 const uint8_t *GetBytes() const { return m_data; } in GetBytes() function in DecodedCharBuffer
303 utf8_data_ptr = (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpEncodedBufferToStream()
312 (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpEncodedBufferToStream()
339 auto printable_bytes = printable.GetBytes(); in DumpEncodedBufferToStream()
458 if (sourceSize != 0 && !buffer_sp->GetBytes()) in ReadEncodedBufferAndDumpToStream()
462 char *buffer = reinterpret_cast<char *>(buffer_sp->GetBytes()); in ReadEncodedBufferAndDumpToStream()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSSet.cpp522 *reinterpret_cast<uint32_t *>(buffer.GetBytes()) = in GetChildAtIndex()
526 *reinterpret_cast<uint64_t *>(buffer.GetBytes()) = in GetChildAtIndex()
535 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), in GetChildAtIndex()
645 *reinterpret_cast<uint32_t *>(buffer_sp->GetBytes()) = in GetChildAtIndex()
649 *reinterpret_cast<uint64_t *>(buffer_sp->GetBytes()) = in GetChildAtIndex()
807 *((uint32_t *)buffer.GetBytes()) = (uint32_t)set_item.item_ptr; in GetChildAtIndex()
810 *((uint64_t *)buffer.GetBytes()) = (uint64_t)set_item.item_ptr; in GetChildAtIndex()
818 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), in GetChildAtIndex()
H A DNSDictionary.cpp681 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
685 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
811 uint32_t *data_ptr = reinterpret_cast<uint32_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
816 uint64_t *data_ptr = reinterpret_cast<uint64_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
892 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
896 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1058 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1062 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1215 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1219 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DRegisterContextMemory.cpp108 if (process_sp->ReadMemory(m_reg_data_addr, data_sp->GetBytes(), in ReadAllRegisterValues()
126 if (process_sp->WriteMemory(m_reg_data_addr, data_sp->GetBytes(), in WriteAllRegisterValues()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp539 reg_info, heap_data_up->GetBytes() + data_offset, *base_byte_size, in LoadValueFromConsecutiveGPRRegisters()
579 reg_info, heap_data_up->GetBytes() + data_offset, curr_byte_size, in LoadValueFromConsecutiveGPRRegisters()
623 value_addr, heap_data_up->GetBytes(), heap_data_up->GetByteSize(), in LoadValueFromConsecutiveGPRRegisters()
693 x0_reg_info, heap_data_up->GetBytes() + 0, 8, in GetReturnValueObjectImpl()
696 x1_reg_info, heap_data_up->GetBytes() + 8, 8, in GetReturnValueObjectImpl()
789 if (reg_value.GetAsMemoryData(v0_info, heap_data_up->GetBytes(), in GetReturnValueObjectImpl()
H A DABISysV_arm64.cpp514 reg_info, heap_data_up->GetBytes() + data_offset, *base_byte_size, in LoadValueFromConsecutiveGPRRegisters()
550 reg_info, heap_data_up->GetBytes() + data_offset, curr_byte_size, in LoadValueFromConsecutiveGPRRegisters()
591 value_addr, heap_data_up->GetBytes(), heap_data_up->GetByteSize(), in LoadValueFromConsecutiveGPRRegisters()
663 x0_reg_info, heap_data_up->GetBytes() + 0, 8, in GetReturnValueObjectImpl()
666 x1_reg_info, heap_data_up->GetBytes() + 8, 8, in GetReturnValueObjectImpl()
757 if (reg_value.GetAsMemoryData(v0_info, heap_data_up->GetBytes(), in GetReturnValueObjectImpl()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp875 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
879 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
884 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
889 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
1013 data_sp->GetBytes() + (field_bit_offset / 8), *field_byte_width, in GetReturnValueObjectImpl()
1095 r2_info, data_sp->GetBytes(), r2_info->byte_size, target_byte_order, in GetReturnValueObjectImpl()
1104 r3_info, data_sp->GetBytes() + r2_info->byte_size, in GetReturnValueObjectImpl()
/freebsd-13.1/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectMemory.cpp652 if (data_sp->GetBytes() == nullptr) { in DoExecute()
661 bytes_read = target->ReadMemory(address, data_sp->GetBytes(), in DoExecute()
692 if (data_sp->GetBytes() == nullptr) { in DoExecute()
699 uint8_t *data_ptr = data_sp->GetBytes(); in DoExecute()
737 std::make_shared<DataBufferHeap>(data_sp->GetBytes(), bytes_read + 1); in DoExecute()
769 outfile_stream_up->Write(data_sp->GetBytes(), bytes_read); in DoExecute()
1096 found_location = FastSearch(found_location, high_addr, buffer.GetBytes(), in DoExecute()
1112 dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), error); in DoExecute()
1114 DataExtractor data(dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), in DoExecute()
1318 process->WriteMemory(addr, data_sp->GetBytes(), length, error); in DoExecute()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc64.cpp730 if (!vr_val[i].GetAsMemoryData(vr[i], vr_data->GetBytes() + i * vr_size, in GetVectorValueObject()
745 memcpy(m_data_up->GetBytes(), vr_data->GetBytes() + offs, m_byte_size); in GetVectorValueObject()
759 size_t rc = m_process_sp->ReadMemory(addr, m_data_up->GetBytes(), in GetStructValueObject()
798 m_data_up->GetBytes() + m_dst_offs, *elem_size, m_byte_order, in GetStructValueObject()
883 if (!ExtractFromRegs(m_src_offs, n, m_data_up->GetBytes() + m_dst_offs)) in ExtractField()
893 if (!ExtractFromRegs(m_src_offs, size, m_data_up->GetBytes() + m_dst_offs)) in ExtractField()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/
H A DNativeRegisterContextNetBSD_x86_64.cpp489 reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
498 ::memcpy(data, reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
514 ::memcpy(ymm.bytes, reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
538 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
564 uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()

1234