Home
last modified time | relevance | path

Searched refs:aSize (Results 1 – 25 of 70) sorted by relevance

123

/openthread-3.6.0/src/core/api/
Dsrp_client_buffers_api.cpp45 char *otSrpClientBuffersGetHostNameString(otInstance *aInstance, uint16_t *aSize) in otSrpClientBuffersGetHostNameString() argument
47 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetHostNameString()
49 return AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().GetHostNameString(*aSize); in otSrpClientBuffersGetHostNameString()
74 …entBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize) in otSrpClientBuffersGetServiceEntryServiceNameString() argument
76 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetServiceEntryServiceNameString()
78 return AsCoreType(aEntry).GetServiceNameString(*aSize); in otSrpClientBuffersGetServiceEntryServiceNameString()
81 …ntBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize) in otSrpClientBuffersGetServiceEntryInstanceNameString() argument
83 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString()
85 return AsCoreType(aEntry).GetInstanceNameString(*aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString()
88 …otSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize) in otSrpClientBuffersGetServiceEntryTxtBuffer() argument
[all …]
Dheap_api.cpp42 void *otHeapCAlloc(size_t aCount, size_t aSize) in otHeapCAlloc() argument
45 OT_UNUSED_VARIABLE(aSize); in otHeapCAlloc()
63 void *otHeapCAlloc(size_t aCount, size_t aSize) { return ot::Heap::CAlloc(aCount, aSize); } in otHeapCAlloc() argument
Drandom_crypto_api.cpp42 otError otRandomCryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) in otRandomCryptoFillBuffer() argument
44 return Random::Crypto::FillBuffer(aBuffer, aSize); in otRandomCryptoFillBuffer()
Dnat64_api.cpp162 void otIp4AddressToString(const otIp4Address *aAddress, char *aBuffer, uint16_t aSize) in otIp4AddressToString() argument
166 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp4AddressToString()
171 void otIp4CidrToString(const otIp4Cidr *aCidr, char *aBuffer, uint16_t aSize) in otIp4CidrToString() argument
175 AsCoreType(aCidr).ToString(aBuffer, aSize); in otIp4CidrToString()
Drandom_noncrypto_api.cpp61 …domNonCryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) { Random::NonCrypto::FillBuffer(aBuffer, in otRandomNonCryptoFillBuffer() argument
Dip6_api.cpp206 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize) in otIp6AddressToString() argument
210 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp6AddressToString()
213 void otIp6SockAddrToString(const otSockAddr *aSockAddr, char *aBuffer, uint16_t aSize) in otIp6SockAddrToString() argument
217 AsCoreType(aSockAddr).ToString(aBuffer, aSize); in otIp6SockAddrToString()
220 void otIp6PrefixToString(const otIp6Prefix *aPrefix, char *aBuffer, uint16_t aSize) in otIp6PrefixToString() argument
224 AsCoreType(aPrefix).ToString(aBuffer, aSize); in otIp6PrefixToString()
Dcoap_api.cpp102 uint16_t otCoapBlockSizeFromExponent(otCoapBlockSzx aSize) in otCoapBlockSizeFromExponent() argument
104 return static_cast<uint16_t>(1 << (static_cast<uint8_t>(aSize) + Coap::Message::kBlockSzxBase)); in otCoapBlockSizeFromExponent()
107 …CoapMessageAppendBlock2Option(otMessage *aMessage, uint32_t aNum, bool aMore, otCoapBlockSzx aSize) in otCoapMessageAppendBlock2Option() argument
109 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType2, aNum, aMore, aSize); in otCoapMessageAppendBlock2Option()
112 …CoapMessageAppendBlock1Option(otMessage *aMessage, uint32_t aNum, bool aMore, otCoapBlockSzx aSize) in otCoapMessageAppendBlock1Option() argument
114 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType1, aNum, aMore, aSize); in otCoapMessageAppendBlock1Option()
/openthread-3.6.0/src/core/utils/
Dsrp_client_buffers.hpp125 char *GetServiceNameString(uint16_t &aSize) in GetServiceNameString() argument
127 aSize = sizeof(mServiceName); in GetServiceNameString()
139 char *GetInstanceNameString(uint16_t &aSize) in GetInstanceNameString() argument
141 aSize = sizeof(mInstanceName); in GetInstanceNameString()
153 uint8_t *GetTxtBuffer(uint16_t &aSize) in GetTxtBuffer() argument
155 aSize = sizeof(mTxtBuffer); in GetTxtBuffer()
200 char *GetHostNameString(uint16_t &aSize) in GetHostNameString() argument
202 aSize = sizeof(mHostName); in GetHostNameString()
Dparse_cmdline.cpp264 static Error ParseHexString(const char *&aString, uint16_t &aSize, uint8_t *aBuffer, HexStringParse… in ParseHexString() argument
280 VerifyOrExit(expectedSize == aSize, error = kErrorInvalidArgs); in ParseHexString()
283 VerifyOrExit(expectedSize <= aSize, error = kErrorInvalidArgs); in ParseHexString()
298 if ((aMode == kModeAllowPartial) && (parsedSize == aSize)) in ParseHexString()
325 aSize = static_cast<uint16_t>(parsedSize); 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 …]
Dparse_cmdline.hpp232 otError ParseAsHexString(const char *aString, uint8_t *aBuffer, uint16_t aSize);
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()
560 return CmdLineParser::ParseAsHexString(mString, aBuffer, aSize); in ParseAsHexString()
596 otError ParseAsHexString(uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexString() argument
598 return CmdLineParser::ParseAsHexString(mString, aSize, aBuffer); in ParseAsHexString()
Dheap.hpp85 void SetSize(uint16_t aSize) { mSize = aSize; } in SetSize() argument
196 void *CAlloc(size_t aCount, size_t aSize);
/openthread-3.6.0/examples/platforms/simulation/
Dflash.c118 …FlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize) in otPlatFlashRead() argument
125 …rt((sFlashFd >= 0) && (aSwapIndex < SWAP_NUM) && (aSize <= SWAP_SIZE) && (aOffset <= (SWAP_SIZE - in otPlatFlashRead()
129 rval = pread(sFlashFd, aData, aSize, (off_t)(address + aOffset)); in otPlatFlashRead()
130 VerifyOrDie((uint32_t)rval == aSize, OT_EXIT_ERROR_ERRNO); in otPlatFlashRead()
133 …ite(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize) in otPlatFlashWrite() argument
141 …rt((sFlashFd >= 0) && (aSwapIndex < SWAP_NUM) && (aSize <= SWAP_SIZE) && (aOffset <= (SWAP_SIZE - in otPlatFlashWrite()
146 for (uint32_t offset = 0; offset < aSize; offset++) in otPlatFlashWrite()
/openthread-3.6.0/src/core/common/
Dheap.cpp43 void *CAlloc(size_t aCount, size_t aSize) { return otPlatCAlloc(aCount, aSize); } in CAlloc() argument
49 void *CAlloc(size_t aCount, size_t aSize) { return Instance::GetHeap().CAlloc(aCount, aSize); }
Drandom.hpp88 …Error CryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) { return otPlatCryptoRandomGet(aBuffer, a… in CryptoFillBuffer() argument
176 void FillBuffer(uint8_t *aBuffer, uint16_t aSize);
219 …ine Error FillBuffer(uint8_t *aBuffer, uint16_t aSize) { return Manager::CryptoFillBuffer(aBuffer,… in FillBuffer() argument
Dappender.cpp45 Appender::Appender(uint8_t *aBuffer, uint16_t aSize) in Appender() argument
48 mShared.mFrameBuilder.Init(aBuffer, aSize); in Appender()
Duptime.cpp84 void Uptime::GetUptime(char *aBuffer, uint16_t aSize) const in GetUptime()
86 StringWriter writer(aBuffer, aSize); in GetUptime()
/openthread-3.6.0/include/openthread/
Dsrp_client_buffers.h77 char *otSrpClientBuffersGetHostNameString(otInstance *aInstance, uint16_t *aSize);
147 …ntBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
159 …tBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
170 …tSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
/openthread-3.6.0/src/posix/platform/
Dmemory.cpp38 void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
/openthread-3.6.0/src/core/net/
Dsocket.cpp48 void SockAddr::ToString(char *aBuffer, uint16_t aSize) const in ToString()
50 StringWriter writer(aBuffer, aSize); in ToString()
Dip4_types.cpp120 void Address::ToString(char *aBuffer, uint16_t aSize) const in ToString()
122 StringWriter writer(aBuffer, aSize); in ToString()
164 void Cidr::ToString(char *aBuffer, uint16_t aSize) const in ToString()
166 StringWriter writer(aBuffer, aSize); in ToString()
/openthread-3.6.0/include/openthread/platform/
Dflash.h77 …lashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize);
90 …te(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize);
/openthread-3.6.0/tests/unit/
Dtest_platform.cpp104 OT_TOOL_WEAK void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
364 …id otPlatFlashRead(otInstance *, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize) in otPlatFlashRead() argument
369 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashRead()
370 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashRead()
374 memcpy(aData, GetFlash() + address + aOffset, aSize); in otPlatFlashRead()
381 uint32_t aSize) in otPlatFlashWrite() argument
386 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashWrite()
387 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashWrite()
391 for (uint32_t index = 0; index < aSize; index++) in otPlatFlashWrite()
/openthread-3.6.0/examples/apps/ncp/
Dmain.c65 OT_TOOL_WEAK void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
/openthread-3.6.0/src/core/crypto/
Dmbedtls.cpp175 int MbedTls::CryptoSecurePrng(void *, unsigned char *aBuffer, size_t aSize) in CryptoSecurePrng() argument
177 IgnoreError(ot::Random::Crypto::FillBuffer(aBuffer, static_cast<uint16_t>(aSize))); in CryptoSecurePrng()
/openthread-3.6.0/examples/apps/cli/
Dmain.c58 OT_TOOL_WEAK void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument

123