Home
last modified time | relevance | path

Searched refs:aBuffer (Results 1 – 25 of 97) sorted by relevance

1234

/openthread-3.4.0/src/core/common/
Dencoding.hpp128 inline uint16_t ReadUint16(const uint8_t *aBuffer) { return static_cast<uint16_t>((aBuffer[0] << 8)… in ReadUint16() argument
138 inline uint32_t ReadUint32(const uint8_t *aBuffer) in ReadUint32() argument
140 return ((static_cast<uint32_t>(aBuffer[0]) << 24) | (static_cast<uint32_t>(aBuffer[1]) << 16) | in ReadUint32()
141 (static_cast<uint32_t>(aBuffer[2]) << 8) | (static_cast<uint32_t>(aBuffer[3]) << 0)); in ReadUint32()
152 inline uint32_t ReadUint24(const uint8_t *aBuffer) in ReadUint24() argument
154 return ((static_cast<uint32_t>(aBuffer[0]) << 16) | (static_cast<uint32_t>(aBuffer[1]) << 8) | in ReadUint24()
155 (static_cast<uint32_t>(aBuffer[2]) << 0)); in ReadUint24()
166 inline uint64_t ReadUint64(const uint8_t *aBuffer) in ReadUint64() argument
168 return ((static_cast<uint64_t>(aBuffer[0]) << 56) | (static_cast<uint64_t>(aBuffer[1]) << 48) | in ReadUint64()
169 (static_cast<uint64_t>(aBuffer[2]) << 40) | (static_cast<uint64_t>(aBuffer[3]) << 32) | in ReadUint64()
[all …]
Ddata.hpp127 void Init(const void *aBuffer, LengthType aLength) in Init() argument
129 mBuffer = static_cast<const uint8_t *>(aBuffer); in Init()
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()
221 bool MatchesBytesIn(const void *aBuffer, ByteMatcher aMatcher) in MatchesBytesIn() argument
223 return MatchBytes(mBuffer, static_cast<const uint8_t *>(aBuffer), mLength, aMatcher); in MatchesBytesIn()
294 void Init(void *aBuffer, LengthType aLength) { Base::Init(aBuffer, aLength); } in Init() argument
360 Error CopyBytesFrom(const uint8_t *aBuffer, LengthType aLength) in CopyBytesFrom() argument
365 memcpy(AsNonConst(mBuffer), aBuffer, mLength); in CopyBytesFrom()
Dframe_builder.cpp48 void FrameBuilder::Init(void *aBuffer, uint16_t aLength) in Init() argument
50 mBuffer = static_cast<uint8_t *>(aBuffer); in Init()
77 Error FrameBuilder::AppendBytes(const void *aBuffer, uint16_t aLength) in AppendBytes() argument
82 memcpy(mBuffer + mLength, aBuffer, aLength); in AppendBytes()
127 void FrameBuilder::WriteBytes(uint16_t aOffset, const void *aBuffer, uint16_t aLength) in WriteBytes() argument
129 memcpy(mBuffer + aOffset, aBuffer, aLength); in WriteBytes()
132 Error FrameBuilder::InsertBytes(uint16_t aOffset, const void *aBuffer, uint16_t aLength) in InsertBytes() argument
141 memcpy(mBuffer + aOffset, aBuffer, aLength); in InsertBytes()
Drandom.hpp87 …static Error CryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) { return otPlatCryptoRandomGet(aBu… in CryptoFillBuffer() argument
175 void FillBuffer(uint8_t *aBuffer, uint16_t aSize);
203 inline Error FillBuffer(uint8_t *aBuffer, uint16_t aSize) { return Manager::CryptoFillBuffer(aBuffe… in FillBuffer() argument
Dappender.cpp45 Appender::Appender(uint8_t *aBuffer, uint16_t aSize) in Appender() argument
48 mShared.mFrameBuilder.Init(aBuffer, aSize); in Appender()
51 Error Appender::AppendBytes(const void *aBuffer, uint16_t aLength) in AppendBytes() argument
58 error = mShared.mMessage.mMessage->AppendBytes(aBuffer, aLength); in AppendBytes()
62 error = mShared.mFrameBuilder.AppendBytes(aBuffer, aLength); in AppendBytes()
Dframe_builder.hpp62 void Init(void *aBuffer, uint16_t aLength);
184 Error AppendBytes(const void *aBuffer, uint16_t aLength);
242 void WriteBytes(uint16_t aOffset, const void *aBuffer, uint16_t aLength);
277 Error InsertBytes(uint16_t aOffset, const void *aBuffer, uint16_t aLength);
Dheap_data.hpp112 Error SetFrom(const uint8_t *aBuffer, uint16_t aLength);
170 void CopyBytesTo(uint8_t *aBuffer) const { return mData.CopyBytesTo(aBuffer); } in CopyBytesTo()
/openthread-3.4.0/third_party/jlink/SEGGER_RTT_V640/Syscalls/
DSEGGER_RTT_Syscalls_SES.c200 char aBuffer[PRINTF_BUFFER_SIZE]; in printf() local
204 n = vsnprintf(aBuffer, sizeof(aBuffer), fmt, args); in printf()
205 if (n > (int)sizeof(aBuffer)) { in printf()
206 SEGGER_RTT_Write(0, aBuffer, sizeof(aBuffer)); in printf()
208 SEGGER_RTT_Write(0, aBuffer, n); in printf()
/openthread-3.4.0/src/posix/
Dclient.cpp84 void QuitOnExit(const char *aBuffer) in QuitOnExit() argument
88 while (*aBuffer == ' ' || *aBuffer == '\t') in QuitOnExit()
90 ++aBuffer; in QuitOnExit()
93 VerifyOrExit(strstr(aBuffer, kExit) == aBuffer); in QuitOnExit()
95 aBuffer += sizeof(kExit) - 1; in QuitOnExit()
97 while (*aBuffer == ' ' || *aBuffer == '\t') in QuitOnExit()
99 ++aBuffer; in QuitOnExit()
102 switch (*aBuffer) in QuitOnExit()
134 bool DoWrite(int aFile, const void *aBuffer, size_t aSize) in DoWrite() argument
140 ssize_t rval = write(aFile, aBuffer, aSize); in DoWrite()
[all …]
/openthread-3.4.0/src/core/utils/
Dparse_cmdline.hpp232 otError ParseAsHexString(const char *aString, uint8_t *aBuffer, uint16_t aSize);
253 … kBufferSize> static otError ParseAsHexString(const char *aString, uint8_t (&aBuffer)[kBufferSize]) in ParseAsHexString()
255 return ParseAsHexString(aString, aBuffer, kBufferSize); in ParseAsHexString()
275 otError ParseAsHexString(const char *aString, uint16_t &aSize, uint8_t *aBuffer);
299 otError ParseAsHexStringSegment(const char *&aString, uint16_t &aSize, uint8_t *aBuffer);
558 otError ParseAsHexString(uint8_t *aBuffer, uint16_t aSize) const in ParseAsHexString() argument
560 return CmdLineParser::ParseAsHexString(mString, aBuffer, aSize); in ParseAsHexString()
578 template <uint16_t kBufferSize> otError ParseAsHexString(uint8_t (&aBuffer)[kBufferSize]) in ParseAsHexString()
580 return ParseAsHexString(aBuffer, kBufferSize); in ParseAsHexString()
596 otError ParseAsHexString(uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexString() argument
[all …]
Dparse_cmdline.cpp264 static Error ParseHexString(const char *&aString, uint16_t &aSize, uint8_t *aBuffer, HexStringParse… in ParseHexString() argument
307 *aBuffer = 0; in ParseHexString()
314 *aBuffer = static_cast<uint8_t>(digit << 4); in ParseHexString()
319 *aBuffer |= digit; in ParseHexString()
321 aBuffer++; in ParseHexString()
331 Error ParseAsHexString(const char *aString, uint8_t *aBuffer, uint16_t aSize) in ParseAsHexString() argument
333 return ParseHexString(aString, aSize, aBuffer, kModeExactSize); in ParseAsHexString()
336 Error ParseAsHexString(const char *aString, uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexString() argument
338 return ParseHexString(aString, aSize, aBuffer, kModeUpToSize); in ParseAsHexString()
341 Error ParseAsHexStringSegment(const char *&aString, uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexStringSegment() argument
[all …]
/openthread-3.4.0/src/core/api/
Dnat64_api.cpp162 void otIp4AddressToString(const otIp4Address *aAddress, char *aBuffer, uint16_t aSize) in otIp4AddressToString() argument
164 AssertPointerIsNotNull(aBuffer); in otIp4AddressToString()
166 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp4AddressToString()
171 void otIp4CidrToString(const otIp4Cidr *aCidr, char *aBuffer, uint16_t aSize) in otIp4CidrToString() argument
173 AssertPointerIsNotNull(aBuffer); in otIp4CidrToString()
175 AsCoreType(aCidr).ToString(aBuffer, aSize); in otIp4CidrToString()
Dip6_api.cpp195 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize) in otIp6AddressToString() argument
197 AssertPointerIsNotNull(aBuffer); in otIp6AddressToString()
199 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp6AddressToString()
202 void otIp6SockAddrToString(const otSockAddr *aSockAddr, char *aBuffer, uint16_t aSize) in otIp6SockAddrToString() argument
204 AssertPointerIsNotNull(aBuffer); in otIp6SockAddrToString()
206 AsCoreType(aSockAddr).ToString(aBuffer, aSize); in otIp6SockAddrToString()
209 void otIp6PrefixToString(const otIp6Prefix *aPrefix, char *aBuffer, uint16_t aSize) in otIp6PrefixToString() argument
211 AssertPointerIsNotNull(aBuffer); in otIp6PrefixToString()
213 AsCoreType(aPrefix).ToString(aBuffer, aSize); in otIp6PrefixToString()
Drandom_crypto_api.cpp42 otError otRandomCryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) in otRandomCryptoFillBuffer() argument
44 return Random::Crypto::FillBuffer(aBuffer, aSize); in otRandomCryptoFillBuffer()
Dtcp_api.cpp76 otError otTcpSendByReference(otTcpEndpoint *aEndpoint, otLinkedBuffer *aBuffer, uint32_t aFlags) in otTcpSendByReference() argument
78 return AsCoreType(aEndpoint).SendByReference(*aBuffer, aFlags); in otTcpSendByReference()
86 otError otTcpReceiveByReference(otTcpEndpoint *aEndpoint, const otLinkedBuffer **aBuffer) in otTcpReceiveByReference() argument
88 return AsCoreType(aEndpoint).ReceiveByReference(*aBuffer); in otTcpReceiveByReference()
Dinstance_api.cpp90 void otInstanceGetUptimeAsString(otInstance *aInstance, char *aBuffer, uint16_t aSize) in otInstanceGetUptimeAsString() argument
92 AssertPointerIsNotNull(aBuffer); in otInstanceGetUptimeAsString()
94 AsCoreType(aInstance).Get<Uptime>().GetUptime(aBuffer, aSize); in otInstanceGetUptimeAsString()
/openthread-3.4.0/src/core/meshcop/
Dnetwork_name.hpp70 NameData(const char *aBuffer, uint8_t aLength) { Init(aBuffer, aLength); } in NameData() argument
100 uint8_t CopyTo(char *aBuffer, uint8_t aMaxSize) const;
/openthread-3.4.0/src/core/net/
Dsocket.cpp48 void SockAddr::ToString(char *aBuffer, uint16_t aSize) const in ToString() argument
50 StringWriter writer(aBuffer, aSize); in ToString()
Dip4_types.cpp118 void Address::ToString(char *aBuffer, uint16_t aSize) const in ToString() argument
120 StringWriter writer(aBuffer, aSize); in ToString()
162 void Cidr::ToString(char *aBuffer, uint16_t aSize) const in ToString() argument
164 StringWriter writer(aBuffer, aSize); in ToString()
/openthread-3.4.0/examples/platforms/simulation/
Dinfra_if.c44 const uint8_t *aBuffer, in otPlatInfraIfSendIcmp6Nd() argument
49 OT_UNUSED_VARIABLE(aBuffer); in otPlatInfraIfSendIcmp6Nd()
/openthread-3.4.0/src/posix/platform/
Dtrel.cpp82 static const char *BufferToString(const uint8_t *aBuffer, uint16_t aLength) in BufferToString() argument
96 cur += snprintf(cur, (uint16_t)(end - cur), "%02x ", *aBuffer++); in BufferToString()
159 static otError SendPacket(const uint8_t *aBuffer, uint16_t aLength, const otSockAddr *aDestSockAddr) in SendPacket() argument
172 ret = sendto(sSocket, aBuffer, aLength, 0, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); in SendPacket()
193 … aDestSockAddr->mPort, otThreadErrorToString(error), BufferToString(aBuffer, aLength)); in SendPacket()
273 static void EnqueuePacket(const uint8_t *aBuffer, uint16_t aLength, const otSockAddr *aDestSockAddr) in EnqueuePacket() argument
284 memcpy(packet->mBuffer, aBuffer, aLength); in EnqueuePacket()
303 BufferToString(aBuffer, aLength)); in EnqueuePacket()
/openthread-3.4.0/src/lib/spinel/
Dradio_spinel.hpp961 typedef otError (RadioSpinel::*ResponseHandler)(const uint8_t *aBuffer, uint16_t aLength);
1008 …otError ParseRadioFrame(otRadioFrame &aFrame, const uint8_t *aBuffer, uint16_t aLength, spinel_ssi…
1009 otError ThreadDatasetHandler(const uint8_t *aBuffer, uint16_t aLength);
1028 void HandleNotification(const uint8_t *aBuffer, uint16_t aLength);
1029 void HandleValueIs(spinel_prop_key_t aKey, const uint8_t *aBuffer, uint16_t aLength);
1031 void HandleResponse(const uint8_t *aBuffer, uint16_t aLength);
1032 …void HandleTransmitDone(uint32_t aCommand, spinel_prop_key_t aKey, const uint8_t *aBuffer, uint16_…
1033 …void HandleWaitingResponse(uint32_t aCommand, spinel_prop_key_t aKey, const uint8_t *aBuffer, uint…
/openthread-3.4.0/tests/unit/
Dtest_util.cpp33 void DumpBuffer(const char *aTextMessage, const uint8_t *aBuffer, uint16_t aBufferLength) in DumpBuffer() argument
50 byte = *aBuffer++; in DumpBuffer()
/openthread-3.4.0/include/openthread/platform/
Dinfra_if.h90 const uint8_t *aBuffer,
112 const uint8_t *aBuffer,
/openthread-3.4.0/src/ncp/
Dncp_spi.hpp143 explicit SpiFrame(uint8_t *aBuffer) in SpiFrame() argument
144 : mBuffer(aBuffer) in SpiFrame()
299 Spinel::Buffer *aBuffer);

1234