From 0bcf3ec65c98c1b283614dc689fd309594479f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 21 Sep 2018 14:28:16 +0200 Subject: [PATCH] [ion] Storage: increase size and indicates it in the header --- ion/include/ion/storage.h | 2 +- ion/src/shared/platform_info.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ion/include/ion/storage.h b/ion/include/ion/storage.h index 21af7156a..fb243bb54 100644 --- a/ion/include/ion/storage.h +++ b/ion/include/ion/storage.h @@ -63,7 +63,7 @@ public: Record recordWithExtensionAtIndex(const char * extension, int index); Record recordNamed(const char * name); typedef uint16_t record_size_t; - constexpr static size_t k_storageSize = 4096; + constexpr static size_t k_storageSize = 16384; private: constexpr static uint32_t Magic = 0xEE0BDDBA; constexpr static size_t k_maxRecordSize = (1 << sizeof(record_size_t)*8); diff --git a/ion/src/shared/platform_info.cpp b/ion/src/shared/platform_info.cpp index ecebcc1a7..ce5fc060c 100644 --- a/ion/src/shared/platform_info.cpp +++ b/ion/src/shared/platform_info.cpp @@ -25,6 +25,7 @@ public: m_version{EPSILON_VERSION}, m_patchLevel{PATCH_LEVEL}, m_storageAddress(storageAddress), + m_storageSize(Ion::Storage::k_storageSize), m_footer(Magic) { } const char * version() const { assert(m_storageAddress != nullptr); @@ -44,6 +45,7 @@ private: const char m_version[8]; const char m_patchLevel[8]; void * m_storageAddress; + size_t m_storageSize; uint32_t m_footer; };