Home
last modified time | relevance | path

Searched refs:GetPtr (Results 1 – 8 of 8) sorted by relevance

/system/unwinding/libunwindstack/tests/
DMemoryBufferTest.cpp41 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 …]
DMemoryXzTest.cpp37 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/
DDexFile.cpp77 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()
DMemoryFileAtOffset.h33 uint8_t* GetPtr(size_t addr = 0) override { return addr < size_ ? data_ + addr : nullptr; }
DMemoryBuffer.h36 uint8_t* GetPtr(size_t offset) override;
DJitDebug.cpp30 if (!copy->Resize(size) || !memory->ReadFully(addr, copy->GetPtr(0), size)) { in Load()
DMemory.cpp254 uint8_t* MemoryBuffer::GetPtr(size_t offset) { in GetPtr() function in unwindstack::MemoryBuffer
/system/unwinding/libunwindstack/include/unwindstack/
DMemory.h51 virtual uint8_t* GetPtr(size_t /*addr*/ = 0) { return nullptr; }