/openthread-3.7.0/src/lib/spinel/ |
D | multi_frame_buffer.hpp | 141 mWritePointer = mBuffer; in Clear() 142 mRemainingLength = sizeof(mBuffer); in Clear() 152 bool IsEmpty(void) const { return (mWritePointer == mBuffer); } in IsEmpty() 160 uint16_t GetLength(void) const { return static_cast<uint16_t>(mWritePointer - mBuffer); } in GetLength() 168 uint8_t *GetFrame(void) { return mBuffer; } in GetFrame() 171 uint8_t mBuffer[kSize]; member in ot::Spinel::FrameBuffer 204 mWriteFrameStart = mBuffer; in Clear() 205 mWritePointer = mBuffer + kHeaderSize; in Clear() 233 if (GetFrame() + aLength <= GetArrayEnd(mBuffer)) in SetLength() 236 mRemainingLength = static_cast<uint16_t>(mBuffer + kSize - mWritePointer); in SetLength() [all …]
|
D | spi_frame.hpp | 142 : mBuffer(aBuffer) in SpiFrame() 152 uint8_t *GetData(void) { return mBuffer + kHeaderSize; } in GetData() 162 …bool IsValid(void) const { return ((mBuffer[kIndexFlagByte] & kFlagPatternMask) == kFlagPattern); } in IsValid() 170 … bool IsResetFlagSet(void) const { return ((mBuffer[kIndexFlagByte] & kFlagReset) == kFlagReset); } in IsResetFlagSet() 178 …void SetHeaderFlagByte(bool aResetFlag) { mBuffer[kIndexFlagByte] = kFlagPattern | (aResetFlag ? k… in SetHeaderFlagByte() 186 uint8_t GetHeaderFlagByte(void) const { return mBuffer[kIndexFlagByte]; } in GetHeaderFlagByte() 196 …void SetHeaderAcceptLen(uint16_t aAcceptLen) { LittleEndian::WriteUint16(aAcceptLen, mBuffer + kIn… in SetHeaderAcceptLen() 204 …uint16_t GetHeaderAcceptLen(void) const { return LittleEndian::ReadUint16(mBuffer + kIndexAcceptLe… in GetHeaderAcceptLen() 214 …void SetHeaderDataLen(uint16_t aDataLen) { LittleEndian::WriteUint16(aDataLen, mBuffer + kIndexDat… in SetHeaderDataLen() 222 …uint16_t GetHeaderDataLen(void) const { return LittleEndian::ReadUint16(mBuffer + kIndexDataLen); } in GetHeaderDataLen() [all …]
|
D | spinel_buffer.cpp | 45 : mBuffer(aBuffer) in Buffer() 70 mWriteFrameStart[kPriorityLow] = mBuffer; in Clear() 71 mWriteFrameStart[kPriorityHigh] = GetUpdatedBufPtr(mBuffer, 1, kBackward); in Clear() 73 mWriteSegmentHead = mBuffer; in Clear() 74 mWriteSegmentTail = mBuffer; in Clear() 82 mReadFrameStart[kPriorityLow] = mBuffer; in Clear() 83 mReadFrameStart[kPriorityHigh] = GetUpdatedBufPtr(mBuffer, 1, kBackward); in Clear() 84 mReadSegmentHead = mBuffer; in Clear() 85 mReadSegmentTail = mBuffer; in Clear() 86 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.7.0/src/core/common/ |
D | frame_builder.cpp | 50 mBuffer = static_cast<uint8_t *>(aBuffer); in Init() 76 memcpy(mBuffer + mLength, aBuffer, aLength); in AppendBytes() 98 aMacAddress.GetExtended().CopyTo(mBuffer + mLength, Mac::ExtAddress::kReverseByteOrder); in AppendMacAddress() 113 SuccessOrExit(error = aMessage.Read(aOffset, mBuffer + mLength, aLength)); in AppendBytesFromMessage() 123 memcpy(mBuffer + aOffset, aBuffer, aLength); in WriteBytes() 134 memmove(mBuffer + aOffset + aLength, mBuffer + aOffset, mLength - aOffset); in InsertBytes() 135 memcpy(mBuffer + aOffset, aBuffer, aLength); in InsertBytes() 144 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 | 496 void ConvertToLowercase(void) { StringConvertToLowercase(mBuffer); } in ConvertToLowercase() 502 void ConvertToUppercase(void) { StringConvertToUppercase(mBuffer); } in ConvertToUppercase() 505 char *mBuffer; member in ot::StringWriter 524 : StringWriter(mBuffer, sizeof(mBuffer)) in String() 534 const char *AsCString(void) const { return mBuffer; } in AsCString() 537 char mBuffer[kSize]; member in ot::String
|
D | string.cpp | 304 : mBuffer(aBuffer) in StringWriter() 308 mBuffer[0] = kNullChar; in StringWriter() 313 mBuffer[0] = kNullChar; in Clear() 332 len = vsnprintf(mBuffer + mLength, (mSize > mLength ? (mSize - mLength) : 0), aFormat, aArgs); in AppendVarArgs() 339 mBuffer[mSize - 1] = kNullChar; in AppendVarArgs()
|
D | message.hpp | 239 Metadata &GetMetadata(void) { return mBuffer.mHead.mMetadata; } in GetMetadata() 240 const Metadata &GetMetadata(void) const { return mBuffer.mHead.mMetadata; } in GetMetadata() 242 uint8_t *GetFirstData(void) { return mBuffer.mHead.mData; } in GetFirstData() 243 const uint8_t *GetFirstData(void) const { return mBuffer.mHead.mData; } in GetFirstData() 245 uint8_t *GetData(void) { return mBuffer.mData; } in GetData() 246 const uint8_t *GetData(void) const { return mBuffer.mData; } in GetData() 257 } mBuffer; member in ot::Buffer 1502 const Buffer *GetBuffer(void) const { return mBuffer; } in GetBuffer() 1503 void SetBuffer(const Buffer *aBuffer) { mBuffer = aBuffer; } in SetBuffer() 1506 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 | 449 if (GetReserved() < sizeof(mBuffer.mHead.mData)) in PrependBytes() 452 … memcpy(newBuffer->mBuffer.mHead.mData + GetReserved(), mBuffer.mHead.mData + GetReserved(), in PrependBytes() 453 sizeof(mBuffer.mHead.mData) - GetReserved()); in PrependBytes()
|
/openthread-3.7.0/src/posix/platform/ |
D | ip6_utils.hpp | 120 …VerifyOrDie(inet_ntop(AF_INET6, aAddress, mBuffer, sizeof(mBuffer)) != nullptr, OT_EXIT_ERROR_ERRN… in Ip6AddressString() 129 const char *AsCString(void) const { return mBuffer; } in AsCString() 132 char mBuffer[INET6_ADDRSTRLEN]; member in ot::Posix::Ip6Utils::Ip6AddressString
|
D | trel.cpp | 60 uint8_t mBuffer[kMaxPacketSize]; member 306 …if (SendPacket(packet->mBuffer, packet->mLength, &packet->mDestSockAddr) == OT_ERROR_INVALID_STATE) in SendQueuedPackets() 342 memcpy(packet->mBuffer, aBuffer, aLength); in EnqueuePacket()
|
D | infra_if.cpp | 551 uint8_t mBuffer[kMaxNetLinkBufSize]; in ReceiveNetLinkMessage() member 554 len = recv(mNetLinkSocket, msgBuffer.mBuffer, sizeof(msgBuffer.mBuffer), 0); in ReceiveNetLinkMessage()
|
/openthread-3.7.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
|
/openthread-3.7.0/tests/unit/ |
D | test_multipan_rcp_instances.cpp | 226 , mBuffer(mBuf, kTestBufferSize) in TestHost() 227 , mEncoder(mBuffer) in TestHost() 344 size_t frame_len = mBuffer.OutFrameGetLength(); in sendToRcp() 351 SuccessOrQuit(mBuffer.OutFrameRemove()); in sendToRcp() 374 Spinel::Buffer mBuffer; member in TestHost
|