Searched refs:GetPtr (Results 1 – 8 of 8) sorted by relevance
/system/unwinding/libunwindstack/tests/ |
D | MemoryBufferTest.cpp | 41 ASSERT_EQ(nullptr, memory_->GetPtr(0)); in TEST_F() 42 ASSERT_EQ(nullptr, memory_->GetPtr(1)); in TEST_F() 48 ASSERT_TRUE(memory_->GetPtr(0) != nullptr); in TEST_F() 49 ASSERT_TRUE(memory_->GetPtr(1) != nullptr); in TEST_F() 50 ASSERT_TRUE(memory_->GetPtr(255) != nullptr); in TEST_F() 51 ASSERT_TRUE(memory_->GetPtr(256) == nullptr); in TEST_F() 53 uint8_t* data = memory_->GetPtr(0); in TEST_F() 85 ASSERT_TRUE(memory_->GetPtr(0) != nullptr); in TEST_F() 86 ASSERT_TRUE(memory_->GetPtr(1) != nullptr); in TEST_F() 87 ASSERT_TRUE(memory_->GetPtr(255) != nullptr); in TEST_F() [all …]
|
D | MemoryXzTest.cpp | 37 memcpy(memory->GetPtr(0), data.data(), data.size()); in ReadFile() 46 EXPECT_EQ(memcmp(seen_content.data(), expected_content_->GetPtr(offset), size), 0); in VerifyContent()
|
/system/unwinding/libunwindstack/ |
D | DexFile.cpp | 77 art_api::dex::DexFile::Create(memory->GetPtr(), size, nullptr, map->name().c_str(), &dex); in CreateFromDisk() 117 if (!memory->ReadFully(base_addr, copy->GetPtr(0), file_size)) { in Create() 121 art_api::dex::DexFile::Create(copy->GetPtr(0), file_size, nullptr, "", &dex); in Create()
|
D | MemoryFileAtOffset.h | 33 uint8_t* GetPtr(size_t addr = 0) override { return addr < size_ ? data_ + addr : nullptr; }
|
D | MemoryBuffer.h | 36 uint8_t* GetPtr(size_t offset) override;
|
D | JitDebug.cpp | 30 if (!copy->Resize(size) || !memory->ReadFully(addr, copy->GetPtr(0), size)) { in Load()
|
D | Memory.cpp | 254 uint8_t* MemoryBuffer::GetPtr(size_t offset) { in GetPtr() function in unwindstack::MemoryBuffer
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | Memory.h | 51 virtual uint8_t* GetPtr(size_t /*addr*/ = 0) { return nullptr; }
|