Lines Matching refs:mLength
130 mLength = aLength; in Init()
176 LengthType GetLength(void) const { return mLength; } in GetLength()
184 void SetLength(LengthType aLength) { mLength = aLength; } in SetLength()
194 void CopyBytesTo(void *aBuffer) const { memcpy(aBuffer, mBuffer, mLength); } in CopyBytesTo()
207 … bool MatchesBytesIn(const void *aBuffer) const { return memcmp(mBuffer, aBuffer, mLength) == 0; } in MatchesBytesIn()
223 return MatchBytes(mBuffer, static_cast<const uint8_t *>(aBuffer), mLength, aMatcher); in MatchesBytesIn()
237 return (mLength == aOtherData.mLength) && MatchesBytesIn(aOtherData.mBuffer); in operator ==()
254 return (mLength >= aOtherData.mLength) && aOtherData.MatchesBytesIn(mBuffer); in StartsWith()
259 LengthType mLength; member in ot::Data
278 using Base::mLength;
342 void ClearBytes(void) { memset(GetBytes(), 0, mLength); } in ClearBytes()
362 Error error = (mLength >= aLength) ? kErrorNone : kErrorNoBufs; in CopyBytesFrom()
364 mLength = Min(mLength, aLength); in CopyBytesFrom()
365 memcpy(AsNonConst(mBuffer), aBuffer, mLength); in CopyBytesFrom()