summaryrefslogtreecommitdiff
path: root/view/macho
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-03-10 11:05:40 -0400
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commit25cc02431b61097b2adfc2fbc493b648b0300c3b (patch)
treea79d9c4f4f67234d3bf9bda413e8608f479a4cc8 /view/macho
parentfa85bf28502286c4821427c5d0ed91a7ed46f8f6 (diff)
[SharedCache] Refactor Shared Cache
In absence of a better name, this commit refactors the shared cache code.
Diffstat (limited to 'view/macho')
-rw-r--r--view/macho/objc.cpp4
-rw-r--r--view/macho/objc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/view/macho/objc.cpp b/view/macho/objc.cpp
index 6663a44b..6df20816 100644
--- a/view/macho/objc.cpp
+++ b/view/macho/objc.cpp
@@ -11,9 +11,9 @@ void MachoObjCReader::Read(void* dest, size_t len)
m_reader.Read(dest, len);
}
-std::string MachoObjCReader::ReadCString()
+std::string MachoObjCReader::ReadCString(size_t maxLength)
{
- return m_reader.ReadCString();
+ return m_reader.ReadCString(maxLength);
}
uint8_t MachoObjCReader::Read8()
diff --git a/view/macho/objc.h b/view/macho/objc.h
index 42aec8d0..d64923cf 100644
--- a/view/macho/objc.h
+++ b/view/macho/objc.h
@@ -10,7 +10,7 @@ namespace BinaryNinja {
public:
void Read(void* dest, size_t len) override;
- std::string ReadCString() override;
+ std::string ReadCString(size_t maxLength = -1) override;
uint8_t Read8() override;
uint16_t Read16() override;
uint32_t Read32() override;