unwindstack: rename Memory::Read to ReadFully.
Rename Memory::Read to ReadFully to match its semantics with that of
android::base. ReadPartially will be renamed to Read in a follow up
commit, kept intentionally separate so that there aren't any callers
accidentally switched from ReadFully to Read.
Test: treehugger
Change-Id: I7d845ac5244c3025d92c8512e960e5d0d1da05af
diff --git a/libunwindstack/Memory.cpp b/libunwindstack/Memory.cpp
index f27a350..1f4cd03 100644
--- a/libunwindstack/Memory.cpp
+++ b/libunwindstack/Memory.cpp
@@ -84,7 +84,7 @@
namespace unwindstack {
-bool Memory::Read(uint64_t addr, void* dst, size_t size) {
+bool Memory::ReadFully(uint64_t addr, void* dst, size_t size) {
size_t rc = ReadPartially(addr, dst, size);
return rc == size;
}
@@ -94,7 +94,7 @@
uint64_t bytes_read = 0;
while (bytes_read < max_read) {
uint8_t value;
- if (!Read(addr, &value, sizeof(value))) {
+ if (!ReadFully(addr, &value, sizeof(value))) {
return false;
}
if (value == '\0') {
@@ -237,7 +237,7 @@
// The first uint64_t value is the start of memory.
uint64_t start;
- if (!memory_file->Read(0, &start, sizeof(start))) {
+ if (!memory_file->ReadFully(0, &start, sizeof(start))) {
return false;
}