Lines Matching refs:aLength
42 Error Data::SetFrom(const uint8_t *aBuffer, uint16_t aLength) in SetFrom() argument
46 SuccessOrExit(error = UpdateBuffer(aLength)); in SetFrom()
47 VerifyOrExit(aLength != 0); in SetFrom()
49 SuccessOrAssert(mData.CopyBytesFrom(aBuffer, aLength)); in SetFrom()
60 Error Data::SetFrom(const Message &aMessage, uint16_t aOffset, uint16_t aLength) in SetFrom() argument
64 VerifyOrExit(aOffset + aLength <= aMessage.GetLength(), error = kErrorParse); in SetFrom()
66 SuccessOrExit(error = UpdateBuffer(aLength)); in SetFrom()
67 VerifyOrExit(aLength != 0); in SetFrom()
69 SuccessOrAssert(aMessage.Read(aOffset, mData.GetBytes(), aLength)); in SetFrom()
81 bool Data::Matches(const uint8_t *aBuffer, uint16_t aLength) const in Matches()
85 VerifyOrExit(aLength == mData.GetLength()); in Matches()
89 matches = (aLength == 0); in Matches()