Lines Matching refs:uint16_t

82     Error Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const;
98 Error Set(uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength);
111 Error Add(uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength);
124 Error Delete(uint16_t aKey, int aIndex);
141 void Init(uint16_t aKey, bool aFirst) in Init()
155 uint16_t GetKey(void) const { return mKey; } in GetKey()
156 void SetKey(uint16_t aKey) { mKey = aKey; } in SetKey()
158 uint16_t GetLength(void) const { return mLength; } in GetLength()
159 void SetLength(uint16_t aLength) { mLength = aLength; } in SetLength()
161 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize()
178 static constexpr uint16_t kFlagsInit = 0xffff; // Flags initialize to all-ones.
179 …static constexpr uint16_t kFlagAddBegin = 1 << 0; // 0 indicates record write has started, 1 ot…
180 …static constexpr uint16_t kFlagAddComplete = 1 << 1; // 0 indicates record write has completed, 1 …
181 …static constexpr uint16_t kFlagDelete = 1 << 2; // 0 indicates record was deleted, 1 otherwis…
182 …static constexpr uint16_t kFlagFirst = 1 << 3; // 0 indicates first record for key, 1 otherw…
184 uint16_t mKey;
185 uint16_t mFlags;
186 uint16_t mLength;
187 uint16_t mReserved;
195 void SetData(const uint8_t *aData, uint16_t aDataLength) in SetData()
203 static constexpr uint16_t kMaxDataSize = 255;
208 Error Add(uint16_t aKey, bool aFirst, const uint8_t *aValue, uint16_t aValueLength);
209 bool DoesValidRecordExist(uint32_t aOffset, uint16_t aKey) const;