Changeset View
Changeset View
Standalone View
Standalone View
common/storage/key.h
Context not available. | |||||
67 | static const constexpr size_t INTERNAL_REPR_SIZE = 19; | 67 | static const constexpr size_t INTERNAL_REPR_SIZE = 19; | ||
---|---|---|---|---|---|
68 | static const constexpr size_t DISPLAY_REPR_SIZE = 19; | 68 | static const constexpr size_t DISPLAY_REPR_SIZE = 19; | ||
69 | 69 | | |||
70 | Revision(qint64 rev) : rev(rev) {} | 70 | Revision(size_t rev) : rev(rev) {} | ||
71 | 71 | | |||
72 | QByteArray toInternalByteArray() const; | 72 | QByteArray toInternalByteArray() const; | ||
73 | static Revision fromInternalByteArray(const QByteArray &bytes); | 73 | static Revision fromInternalByteArray(const QByteArray &bytes); | ||
Context not available. | |||||
75 | QByteArray toDisplayByteArray() const; | 75 | QByteArray toDisplayByteArray() const; | ||
76 | static Revision fromDisplayByteArray(const QByteArray &bytes); | 76 | static Revision fromDisplayByteArray(const QByteArray &bytes); | ||
77 | qint64 toQint64() const; | 77 | qint64 toQint64() const; | ||
78 | size_t toSizeT() const; | ||||
78 | 79 | | |||
79 | static bool isValidInternal(const QByteArray &); | 80 | static bool isValidInternal(const QByteArray &); | ||
80 | static bool isValidDisplay(const QByteArray &); | 81 | static bool isValidDisplay(const QByteArray &); | ||
Context not available. | |||||
84 | bool operator!=(const Revision &other) const; | 85 | bool operator!=(const Revision &other) const; | ||
85 | 86 | | |||
86 | private: | 87 | private: | ||
87 | qint64 rev; | 88 | size_t rev; | ||
88 | }; | 89 | }; | ||
89 | 90 | | |||
90 | class Key | 91 | class Key | ||
Context not available. |