mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps] Modular reimplementation of application models (stores and
ranges) and of curve views/curve view controllers. Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
extern "C" {
|
||||
#include <assert.h>
|
||||
}
|
||||
#include <stddef.h>
|
||||
|
||||
namespace Graph {
|
||||
|
||||
@@ -15,6 +16,13 @@ FunctionStore::FunctionStore() :
|
||||
addEmptyFunction();
|
||||
}
|
||||
|
||||
uint32_t FunctionStore::storeChecksum() {
|
||||
size_t dataLengthInBytes = m_numberOfFunctions*sizeof(Function);
|
||||
assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4
|
||||
//return Ion::crc32((uint32_t *)m_functions, dataLengthInBytes>>2);
|
||||
return m_numberOfFunctions;
|
||||
}
|
||||
|
||||
Function * FunctionStore::functionAtIndex(int i) {
|
||||
assert(i>=0 && i<m_numberOfFunctions);
|
||||
return &m_functions[i];
|
||||
|
||||
Reference in New Issue
Block a user