summaryrefslogtreecommitdiffstats
path: root/runtime/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/image.h')
-rw-r--r--runtime/image.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/runtime/image.h b/runtime/image.h
index 0e0a90a..2cb468f 100644
--- a/runtime/image.h
+++ b/runtime/image.h
@@ -41,20 +41,8 @@ class PACKED(4) ImageHeader {
uint32_t oat_data_end,
uint32_t oat_file_end);
- bool IsValid() const {
- if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) {
- return false;
- }
- if (memcmp(version_, kImageVersion, sizeof(kImageVersion)) != 0) {
- return false;
- }
- return true;
- }
-
- const char* GetMagic() const {
- CHECK(IsValid());
- return reinterpret_cast<const char*>(magic_);
- }
+ bool IsValid() const;
+ const char* GetMagic() const;
byte* GetImageBegin() const {
return reinterpret_cast<byte*>(image_begin_);