[ion] Storage: add comment on Record

This commit is contained in:
Émilie Feral
2018-03-22 13:22:46 +01:00
committed by EmilieNumworks
parent 845fc7c979
commit 3bc16637a0

View File

@@ -19,6 +19,12 @@ namespace Ion {
class Storage {
public:
class Record {
/* A Record is identified by the CRC32 on his name because:
* - a record is identified by its name which is unique
* - we cannot keep the address pointing to the name because if another
* record is modified, it might alter our record name address and keeping
* a buffer with the name will waste memory as we cannot forsee the size
* of the name. */
friend class Storage;
public:
enum class ErrorStatus {