Updatables

class CUpdatable

Readable or writable file to communicate bulk data, for example the data of a lookup table. This memory can be read or written via the PMP Updatable interface, depending whether it is marked as readable or writable in the interface definition. When writing a file via the PMP Updatable interface, the file content is replaced atomically when all data has been downloaded.

template<typename T>
T ReadEntry(const size_t index) const

Reads the value of the specified index.

Parameters

index – The index of the entry that is read.

Returns

T – The value of index in the specified data type.

template<typename T>
void WriteEntry(size_t index, const T &value)

Write the value to the specified index of the updatable.

Parameters
  • index – The index of the entry that is written to.

  • index – The value that is written.

size_t GetCount() const

Get the maximum size of the updatable.

Returns

size_t – The maximum size of the updatable when read as the specified data type.