/openthread-3.5.0/src/lib/spinel/ |
D | multi_frame_buffer.hpp | 145 mWritePointer = mBuffer; in Clear() 146 mRemainingLength = sizeof(mBuffer); in Clear() 156 bool IsEmpty(void) const { return (mWritePointer == mBuffer); } in IsEmpty() 164 uint16_t GetLength(void) const { return static_cast<uint16_t>(mWritePointer - mBuffer); } in GetLength() 172 uint8_t *GetFrame(void) { return mBuffer; } in GetFrame() 175 uint8_t mBuffer[kSize]; member in ot::Spinel::FrameBuffer 208 mWriteFrameStart = mBuffer; in Clear() 209 mWritePointer = mBuffer + kHeaderSize; in Clear() 237 if (GetFrame() + aLength <= GetArrayEnd(mBuffer)) in SetLength() 240 mRemainingLength = static_cast<uint16_t>(mBuffer + kSize - mWritePointer); in SetLength() [all …]
|
D | spi_frame.hpp | 144 : mBuffer(aBuffer) in SpiFrame() 154 uint8_t *GetData(void) { return mBuffer + kHeaderSize; } in GetData() 164 …bool IsValid(void) const { return ((mBuffer[kIndexFlagByte] & kFlagPatternMask) == kFlagPattern); } in IsValid() 172 … bool IsResetFlagSet(void) const { return ((mBuffer[kIndexFlagByte] & kFlagReset) == kFlagReset); } in IsResetFlagSet() 180 …void SetHeaderFlagByte(bool aResetFlag) { mBuffer[kIndexFlagByte] = kFlagPattern | (aResetFlag ? k… in SetHeaderFlagByte() 188 uint8_t GetHeaderFlagByte(void) const { return mBuffer[kIndexFlagByte]; } in GetHeaderFlagByte() 200 Encoding::LittleEndian::WriteUint16(aAcceptLen, mBuffer + kIndexAcceptLen); in SetHeaderAcceptLen() 209 …uint16_t GetHeaderAcceptLen(void) const { return Encoding::LittleEndian::ReadUint16(mBuffer + kInd… in GetHeaderAcceptLen() 219 …taLen(uint16_t aDataLen) { Encoding::LittleEndian::WriteUint16(aDataLen, mBuffer + kIndexDataLen);… in SetHeaderDataLen() 227 …uint16_t GetHeaderDataLen(void) const { return Encoding::LittleEndian::ReadUint16(mBuffer + kIndex… in GetHeaderDataLen() [all …]
|
D | spinel_buffer.cpp | 44 : mBuffer(aBuffer) in Buffer() 69 mWriteFrameStart[kPriorityLow] = mBuffer; in Clear() 70 mWriteFrameStart[kPriorityHigh] = GetUpdatedBufPtr(mBuffer, 1, kBackward); in Clear() 72 mWriteSegmentHead = mBuffer; in Clear() 73 mWriteSegmentTail = mBuffer; in Clear() 81 mReadFrameStart[kPriorityLow] = mBuffer; in Clear() 82 mReadFrameStart[kPriorityHigh] = GetUpdatedBufPtr(mBuffer, 1, kBackward); in Clear() 83 mReadSegmentHead = mBuffer; in Clear() 84 mReadSegmentTail = mBuffer; in Clear() 85 mReadPointer = mBuffer; in Clear() [all …]
|
D | spinel_buffer.hpp | 623 uint8_t *const mBuffer; // Pointer to the buffer used to store the data. member in ot::Spinel::Buffer
|
/openthread-3.5.0/src/core/common/ |
D | frame_builder.cpp | 50 mBuffer = static_cast<uint8_t *>(aBuffer); in Init() 82 memcpy(mBuffer + mLength, aBuffer, aLength); in AppendBytes() 104 aMacAddress.GetExtended().CopyTo(mBuffer + mLength, Mac::ExtAddress::kReverseByteOrder); in AppendMacAddress() 119 SuccessOrExit(error = aMessage.Read(aOffset, mBuffer + mLength, aLength)); in AppendBytesFromMessage() 129 memcpy(mBuffer + aOffset, aBuffer, aLength); in WriteBytes() 140 memmove(mBuffer + aOffset + aLength, mBuffer + aOffset, mLength - aOffset); in InsertBytes() 141 memcpy(mBuffer + aOffset, aBuffer, aLength); in InsertBytes() 150 memmove(mBuffer + aOffset, mBuffer + aOffset + aLength, mLength - aOffset - aLength); in RemoveBytes()
|
D | data.hpp | 129 mBuffer = static_cast<const uint8_t *>(aBuffer); in Init() 168 const uint8_t *GetBytes(void) const { return mBuffer; } in GetBytes() 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() 258 const uint8_t *mBuffer; member in ot::Data 277 using Base::mBuffer; 365 memcpy(AsNonConst(mBuffer), aBuffer, mLength); in CopyBytesFrom()
|
D | string.hpp | 383 void ConvertToLowercase(void) { StringConvertToLowercase(mBuffer); } in ConvertToLowercase() 389 void ConvertToUppercase(void) { StringConvertToUppercase(mBuffer); } in ConvertToUppercase() 392 char *mBuffer; member in ot::StringWriter 411 : StringWriter(mBuffer, sizeof(mBuffer)) in String() 421 const char *AsCString(void) const { return mBuffer; } in AsCString() 424 char mBuffer[kSize]; member in ot::String
|
D | string.cpp | 233 : mBuffer(aBuffer) in StringWriter() 237 mBuffer[0] = kNullChar; in StringWriter() 242 mBuffer[0] = kNullChar; in Clear() 261 len = vsnprintf(mBuffer + mLength, (mSize > mLength ? (mSize - mLength) : 0), aFormat, aArgs); in AppendVarArgs() 268 mBuffer[mSize - 1] = kNullChar; in AppendVarArgs()
|
D | message.hpp | 237 Metadata &GetMetadata(void) { return mBuffer.mHead.mMetadata; } in GetMetadata() 238 const Metadata &GetMetadata(void) const { return mBuffer.mHead.mMetadata; } in GetMetadata() 240 uint8_t *GetFirstData(void) { return mBuffer.mHead.mData; } in GetFirstData() 241 const uint8_t *GetFirstData(void) const { return mBuffer.mHead.mData; } in GetFirstData() 243 uint8_t *GetData(void) { return mBuffer.mData; } in GetData() 244 const uint8_t *GetData(void) const { return mBuffer.mData; } in GetData() 255 } mBuffer; member in ot::Buffer 1382 const Buffer *GetBuffer(void) const { return mBuffer; } in GetBuffer() 1383 void SetBuffer(const Buffer *aBuffer) { mBuffer = aBuffer; } in SetBuffer() 1386 const Buffer *mBuffer; // Buffer containing the chunk member in ot::Message::Chunk
|
D | frame_builder.hpp | 70 const uint8_t *GetBytes(void) const { return mBuffer; } in GetBytes() 315 uint8_t *mBuffer; member in ot::FrameBuilder
|
D | message.cpp | 447 if (GetReserved() < sizeof(mBuffer.mHead.mData)) in PrependBytes() 450 … memcpy(newBuffer->mBuffer.mHead.mData + GetReserved(), mBuffer.mHead.mData + GetReserved(), in PrependBytes() 451 sizeof(mBuffer.mHead.mData) - GetReserved()); in PrependBytes()
|
/openthread-3.5.0/src/posix/platform/ |
D | ip6_utils.hpp | 53 …VerifyOrDie(inet_ntop(AF_INET6, aAddress, mBuffer, sizeof(mBuffer)) != nullptr, OT_EXIT_ERROR_ERRN… in Ip6AddressString() 62 const char *AsCString(void) const { return mBuffer; } in AsCString() 65 char mBuffer[INET6_ADDRSTRLEN]; member in ot::Posix::Ip6Utils::Ip6AddressString
|
D | trel.cpp | 60 uint8_t mBuffer[TREL_MAX_PACKET_SIZE]; member 248 …if (SendPacket(packet->mBuffer, packet->mLength, &packet->mDestSockAddr) == OT_ERROR_INVALID_STATE) in SendQueuedPackets() 284 memcpy(packet->mBuffer, aBuffer, aLength); in EnqueuePacket()
|
D | infra_if.cpp | 469 uint8_t mBuffer[kMaxNetLinkBufSize]; in ReceiveNetLinkMessage() member 472 len = recv(mNetLinkSocket, msgBuffer.mBuffer, sizeof(msgBuffer.mBuffer), 0); in ReceiveNetLinkMessage()
|
/openthread-3.5.0/src/core/crypto/ |
D | storage.cpp | 78 mKey = mBuffer; in LiteralKey() 79 mLength = sizeof(mBuffer); in LiteralKey() 80 SuccessOrAssert(aKey.ExtractKey(mBuffer, mLength)); in LiteralKey()
|
D | storage.hpp | 339 uint8_t mBuffer[kMaxSize]; member in ot::Crypto::LiteralKey
|