Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataEncoder.cpp41 return llvm::ArrayRef<uint8_t>(m_data_sp->GetBytes(), GetByteSize()); in GetData()
52 m_data_sp->GetBytes()[offset] = value; in PutU8()
61 write16be(m_data_sp->GetBytes() + offset, value); in PutU16()
63 write16le(m_data_sp->GetBytes() + offset, value); in PutU16()
73 write32be(m_data_sp->GetBytes() + offset, value); in PutU32()
75 write32le(m_data_sp->GetBytes() + offset, value); in PutU32()
85 write64be(m_data_sp->GetBytes() + offset, value); in PutU64()
87 write64le(m_data_sp->GetBytes() + offset, value); in PutU64()
117 memcpy(m_data_sp->GetBytes() + offset, src, src_len); in PutData()
H A DZipFile.cpp89 const uint8_t *zip_data_end = zip_data->GetBytes() + zip_data->GetByteSize(); in FindEocdRecord()
92 for (; p >= zip_data->GetBytes() && p >= find_limit; p--) { in FindEocdRecord()
98 zip_data->GetBytes() + eocd->cd_offset + eocd->cd_size > p) in FindEocdRecord()
111 zip_data->GetBytes() + local_file_header_offset); in GetFile()
126 file_offset = file_data - zip_data->GetBytes(); in GetFile()
135 auto cd = reinterpret_cast<const CdRecord *>(zip_data->GetBytes() + in FindFile()
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCClassDescriptorV2.cpp59 process->ReadMemory(addr, objc_class_buf.GetBytes(), objc_class_size, error); in Read()
64 DataExtractor extractor(objc_class_buf.GetBytes(), objc_class_size, in Read()
104 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
109 DataExtractor extractor(buffer.GetBytes(), size, process->GetByteOrder(), in Read()
126 process->ReadMemory(m_ro_ptr ^ 1, buffer.GetBytes(), ptr_size, error); in Read()
130 DataExtractor extractor(buffer.GetBytes(), ptr_size, in Read()
160 process->ReadMemory(addr, buffer.GetBytes(), size, error); in Read()
165 DataExtractor extractor(buffer.GetBytes(), size, process->GetByteOrder(), in Read()
187 process->ReadCStringFromMemory(m_name_ptr, (char *)name_buf.GetBytes(), in Read()
194 m_name.assign((char *)name_buf.GetBytes()); in Read()
[all …]
H A DAppleObjCRuntimeV1.cpp228 name_ptr, (char *)buffer_sp->GetBytes(), 1024, error); in Initialize()
236 m_name = ConstString(reinterpret_cast<const char *>(buffer_sp->GetBytes())); in Initialize()
345 if (process->ReadMemory(hash_table_ptr, buffer.GetBytes(), 20, error) == in UpdateISAToDescriptorMapIfNeeded()
349 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), byte_order, in UpdateISAToDescriptorMapIfNeeded()
361 if (process->ReadMemory(buckets_ptr, buffer.GetBytes(), data_size, in UpdateISAToDescriptorMapIfNeeded()
363 data.SetData(buffer.GetBytes(), buffer.GetByteSize(), byte_order); in UpdateISAToDescriptorMapIfNeeded()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DDataBuffer.h57 const uint8_t *GetBytes() const { return GetBytesImpl(); }
60 return llvm::ArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
100 using DataBuffer::GetBytes;
108 uint8_t *GetBytes() { return const_cast<uint8_t *>(GetBytesImpl()); }
111 return llvm::MutableArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData()
58 const uint8_t *GetBytes() const { return GetBytesImpl(); } GetBytes() function
109 uint8_t *GetBytes() { return const_cast<uint8_t *>(GetBytesImpl()); } GetBytes() function
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DValue.cpp60 (rhs_value == (uintptr_t)v.m_data_buffer.GetBytes())) { in Value()
61 m_data_buffer.CopyData(v.m_data_buffer.GetBytes(), in Value()
64 m_value = (uintptr_t)m_data_buffer.GetBytes(); in Value()
78 (rhs_value == (uintptr_t)rhs.m_data_buffer.GetBytes())) { in operator =()
79 m_data_buffer.CopyData(rhs.m_data_buffer.GetBytes(), in operator =()
82 m_value = (uintptr_t)m_data_buffer.GetBytes(); in operator =()
91 m_value = (uintptr_t)m_data_buffer.GetBytes(); in SetBytes()
97 m_value = (uintptr_t)m_data_buffer.GetBytes(); in AppendBytes()
166 rhs.m_value.GetAsMemoryData(m_data_buffer.GetBytes() + curr_size, in AppendDataToHostBuffer()
176 const uint8_t *src = rhs.GetBuffer().GetBytes(); in AppendDataToHostBuffer()
[all...]
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DMaterializer.cpp364 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
369 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog()
389 map.ReadMemory(data.GetBytes(), target_address, in DumpToLog()
396 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog()
647 !memcmp(m_original_data->GetBytes(), data.GetDataStart(), in Dematerialize()
699 map.ReadMemory(data.GetBytes(), load_addr, m_size, err); in DumpToLog()
704 DataExtractor extractor(data.GetBytes(), data.GetByteSize(), in DumpToLog()
707 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog()
729 map.ReadMemory(data.GetBytes(), m_temporary_allocation, in DumpToLog()
735 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog()
[all …]
H A DIRMemoryMap.cpp575 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
583 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
703 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
717 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
748 ReadMemory(buf.GetBytes(), process_address, size, error); in ReadScalarFromMemory()
753 DataExtractor extractor(buf.GetBytes(), buf.GetByteSize(), GetByteOrder(), in ReadScalarFromMemory()
838 allocation.m_data.GetBytes(), in GetMemoryData()
843 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
855 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
H A DIRInterpreter.cpp246 if (!cast_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in AssignValue()
252 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in AssignValue()
383 if (!resolved_scalar.GetAsMemoryData(buf.GetBytes(), buf.GetByteSize(), in ResolveConstant()
389 m_execution_unit.WriteMemory(process_address, buf.GetBytes(), in ResolveConstant()
422 m_execution_unit.ReadMemory(buf.GetBytes(), addr, length, read_error); in PrintData()
431 ss.Printf("%02hhx - ", buf.GetBytes()[i]); in PrintData()
433 ss.Printf("%02hhx ", buf.GetBytes()[i]); in PrintData()
1321 execution_unit.ReadMemory(buffer.GetBytes(), R, buffer.GetByteSize(), in Interpret()
1331 execution_unit.WriteMemory(D, buffer.GetBytes(), buffer.GetByteSize(), in Interpret()
1395 execution_unit.ReadMemory(buffer.GetBytes(), D, buffer.GetByteSize(), in Interpret()
[all …]
/freebsd/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/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
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 const uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_mips64.cpp173 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
192 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
217 const uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_powerpc.cpp224 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
243 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
268 const uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
H A DNativeRegisterContextFreeBSD_arm64.cpp165 ::memcpy(m_reg_data.data() + reg_info->byte_offset, reg_value.GetBytes(), in WriteRegister()
184 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
209 const uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSSet.cpp519 *reinterpret_cast<uint32_t *>(buffer.GetBytes()) = in GetChildAtIndex()
523 *reinterpret_cast<uint64_t *>(buffer.GetBytes()) = in GetChildAtIndex()
532 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()
804 *((uint32_t *)buffer.GetBytes()) = (uint32_t)set_item.item_ptr; in GetChildAtIndex()
807 *((uint64_t *)buffer.GetBytes()) = (uint64_t)set_item.item_ptr; in GetChildAtIndex()
815 DataExtractor data(buffer.GetBytes(), buffer.GetByteSize(), in GetChildAtIndex()
H A DNSDictionary.cpp715 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
719 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
848 uint32_t *data_ptr = reinterpret_cast<uint32_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
853 uint64_t *data_ptr = reinterpret_cast<uint64_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
969 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
973 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1047 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1051 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1214 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
1218 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
[all …]
/freebsd/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/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp532 *reg_info, heap_data_up->GetBytes() + data_offset, in LoadValueFromConsecutiveGPRRegisters()
572 *reg_info, heap_data_up->GetBytes() + data_offset, curr_byte_size, in LoadValueFromConsecutiveGPRRegisters()
614 value_addr, heap_data_up->GetBytes(), heap_data_up->GetByteSize(), in LoadValueFromConsecutiveGPRRegisters()
683 *x0_reg_info, heap_data_up->GetBytes() + 0, 8, in GetReturnValueObjectImpl()
686 *x1_reg_info, heap_data_up->GetBytes() + 8, 8, in GetReturnValueObjectImpl()
779 if (reg_value.GetAsMemoryData(*v0_info, heap_data_up->GetBytes(), in GetReturnValueObjectImpl()
H A DABISysV_arm64.cpp507 *reg_info, heap_data_up->GetBytes() + data_offset, in LoadValueFromConsecutiveGPRRegisters()
543 *reg_info, heap_data_up->GetBytes() + data_offset, curr_byte_size, in LoadValueFromConsecutiveGPRRegisters()
584 value_addr, heap_data_up->GetBytes(), heap_data_up->GetByteSize(), in LoadValueFromConsecutiveGPRRegisters()
655 *x0_reg_info, heap_data_up->GetBytes() + 0, 8, in GetReturnValueObjectImpl()
658 *x1_reg_info, heap_data_up->GetBytes() + 8, 8, in GetReturnValueObjectImpl()
749 if (reg_value.GetAsMemoryData(*v0_info, heap_data_up->GetBytes(), in GetReturnValueObjectImpl()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp877 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
881 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
886 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
891 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
1015 data_sp->GetBytes() + (field_bit_offset / 8), *field_byte_width, in GetReturnValueObjectImpl()
1097 *r2_info, data_sp->GetBytes(), r2_info->byte_size, in GetReturnValueObjectImpl()
1106 *r3_info, data_sp->GetBytes() + r2_info->byte_size, in GetReturnValueObjectImpl()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc64.cpp729 if (!vr_val[i].GetAsMemoryData(*vr[i], vr_data->GetBytes() + i * vr_size, in GetVectorValueObject()
744 memcpy(m_data_up->GetBytes(), vr_data->GetBytes() + offs, m_byte_size); in GetVectorValueObject()
758 size_t rc = m_process_sp->ReadMemory(addr, m_data_up->GetBytes(), in GetStructValueObject()
802 m_data_up->GetBytes() + m_dst_offs, *elem_size, m_byte_order, in GetStructValueObject()
886 if (!ExtractFromRegs(m_src_offs, n, m_data_up->GetBytes() + m_dst_offs)) in ExtractField()
896 if (!ExtractFromRegs(m_src_offs, size, m_data_up->GetBytes() + m_dst_offs)) in ExtractField()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/
H A DNativeRegisterContextNetBSD_x86_64.cpp490 reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
499 ::memcpy(data, reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
515 ::memcpy(ymm.bytes, reg_value.GetBytes(), reg_value.GetByteSize()); in WriteRegister()
539 uint8_t *dst = data_sp->GetBytes(); in ReadAllRegisterValues()
565 const uint8_t *src = data_sp->GetBytes(); in WriteAllRegisterValues()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DMemory.cpp139 line_base_addr, data_buffer_heap_sp->GetBytes(), in GetL2CacheLine()
183 memcpy(dst, pos->second->GetBytes() + (addr - chunk_range.GetRangeBase()), in Read()
226 first_cache_line->GetBytes() + cache_line_offset, read_size); in Read()
257 memcpy(dst_buf + dst_len - bytes_left, second_cache_line->GetBytes(), in Read()
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectMemory.cpp654 if (data_sp->GetBytes() == nullptr) { in DoExecute()
663 bytes_read = target->ReadMemory(address, data_sp->GetBytes(), in DoExecute()
694 if (data_sp->GetBytes() == nullptr) { in DoExecute()
701 uint8_t *data_ptr = data_sp->GetBytes(); in DoExecute()
739 std::make_shared<DataBufferHeap>(data_sp->GetBytes(), bytes_read + 1); in DoExecute()
772 outfile_stream_up->Write(data_sp->GetBytes(), bytes_read); in DoExecute()
1084 found_location, high_addr, buffer.GetBytes(), buffer.GetByteSize()); in DoExecute()
1099 dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), error); in DoExecute()
1101 DataExtractor data(dumpbuffer.GetBytes(), dumpbuffer.GetByteSize(), in DoExecute()
1292 process->WriteMemory(addr, data_sp->GetBytes(), length, error); in DoExecute()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteRegisterContext.cpp200 lldb_reg, llvm::ArrayRef<uint8_t>(buffer_sp->GetBytes(), in GetPrimordialRegister()
225 buffer_sp->GetBytes(), in ReadRegisterBytes()
585 if (!data_sp || data_sp->GetBytes() == nullptr || data_sp->GetByteSize() == 0) in WriteAllRegisterValues()
607 {data_sp->GetBytes(), size_t(data_sp->GetByteSize())})) in WriteAllRegisterValues()
731 {data_sp->GetBytes() + reg_info->byte_offset, in WriteAllRegisterValues()

1234