Home
last modified time | relevance | path

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

1234

/openthread-latest/src/core/api/
Dsrp_client_buffers_api.cpp44 char *otSrpClientBuffersGetHostNameString(otInstance *aInstance, uint16_t *aSize) in otSrpClientBuffersGetHostNameString() argument
46 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetHostNameString()
48 return AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().GetHostNameString(*aSize); in otSrpClientBuffersGetHostNameString()
73 …entBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize) in otSrpClientBuffersGetServiceEntryServiceNameString() argument
75 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetServiceEntryServiceNameString()
77 return AsCoreType(aEntry).GetServiceNameString(*aSize); in otSrpClientBuffersGetServiceEntryServiceNameString()
80 …ntBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize) in otSrpClientBuffersGetServiceEntryInstanceNameString() argument
82 AssertPointerIsNotNull(aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString()
84 return AsCoreType(aEntry).GetInstanceNameString(*aSize); in otSrpClientBuffersGetServiceEntryInstanceNameString()
87 …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()
Dip6_api.cpp189 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize) in otIp6AddressToString() argument
193 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp6AddressToString()
196 void otIp6SockAddrToString(const otSockAddr *aSockAddr, char *aBuffer, uint16_t aSize) in otIp6SockAddrToString() argument
200 AsCoreType(aSockAddr).ToString(aBuffer, aSize); in otIp6SockAddrToString()
203 void otIp6PrefixToString(const otIp6Prefix *aPrefix, char *aBuffer, uint16_t aSize) in otIp6PrefixToString() argument
207 AsCoreType(aPrefix).ToString(aBuffer, aSize); in otIp6PrefixToString()
Dnat64_api.cpp165 void otIp4AddressToString(const otIp4Address *aAddress, char *aBuffer, uint16_t aSize) in otIp4AddressToString() argument
169 AsCoreType(aAddress).ToString(aBuffer, aSize); in otIp4AddressToString()
174 void otIp4CidrToString(const otIp4Cidr *aCidr, char *aBuffer, uint16_t aSize) in otIp4CidrToString() argument
178 AsCoreType(aCidr).ToString(aBuffer, aSize); in otIp4CidrToString()
Dcoap_api.cpp103 uint16_t otCoapBlockSizeFromExponent(otCoapBlockSzx aSize) in otCoapBlockSizeFromExponent() argument
105 return static_cast<uint16_t>(1 << (static_cast<uint8_t>(aSize) + Coap::Message::kBlockSzxBase)); in otCoapBlockSizeFromExponent()
108 …CoapMessageAppendBlock2Option(otMessage *aMessage, uint32_t aNum, bool aMore, otCoapBlockSzx aSize) in otCoapMessageAppendBlock2Option() argument
110 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType2, aNum, aMore, aSize); in otCoapMessageAppendBlock2Option()
113 …CoapMessageAppendBlock1Option(otMessage *aMessage, uint32_t aNum, bool aMore, otCoapBlockSzx aSize) in otCoapMessageAppendBlock1Option() argument
115 … return AsCoapMessage(aMessage).AppendBlockOption(Coap::Message::kBlockType1, aNum, aMore, aSize); in otCoapMessageAppendBlock1Option()
Drandom_noncrypto_api.cpp61 …domNonCryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) { Random::NonCrypto::FillBuffer(aBuffer, in otRandomNonCryptoFillBuffer() argument
/openthread-latest/src/core/utils/
Dsrp_client_buffers.hpp115 char *GetServiceNameString(uint16_t &aSize) in GetServiceNameString() argument
117 aSize = sizeof(mServiceName); in GetServiceNameString()
128 char *GetInstanceNameString(uint16_t &aSize) in GetInstanceNameString() argument
130 aSize = sizeof(mInstanceName); in GetInstanceNameString()
141 uint8_t *GetTxtBuffer(uint16_t &aSize) in GetTxtBuffer() argument
143 aSize = sizeof(mTxtBuffer); in GetTxtBuffer()
185 char *GetHostNameString(uint16_t &aSize) in GetHostNameString() argument
187 aSize = sizeof(mHostName); in GetHostNameString()
Dparse_cmdline.cpp233 static Error ParseHexString(const char *&aString, uint16_t &aSize, uint8_t *aBuffer, HexStringParse… in ParseHexString() argument
249 VerifyOrExit(expectedSize == aSize, error = kErrorInvalidArgs); in ParseHexString()
252 VerifyOrExit(expectedSize <= aSize, error = kErrorInvalidArgs); in ParseHexString()
267 if ((aMode == kModeAllowPartial) && (parsedSize == aSize)) in ParseHexString()
294 aSize = static_cast<uint16_t>(parsedSize); in ParseHexString()
300 Error ParseAsHexString(const char *aString, uint8_t *aBuffer, uint16_t aSize) in ParseAsHexString() argument
302 return ParseHexString(aString, aSize, aBuffer, kModeExactSize); in ParseAsHexString()
305 Error ParseAsHexString(const char *aString, uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexString() argument
307 return ParseHexString(aString, aSize, aBuffer, kModeUpToSize); in ParseAsHexString()
310 Error ParseAsHexStringSegment(const char *&aString, uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexStringSegment() argument
[all …]
Dparse_cmdline.hpp220 otError ParseAsHexString(const char *aString, uint8_t *aBuffer, uint16_t aSize);
261 otError ParseAsHexString(const char *aString, uint16_t &aSize, uint8_t *aBuffer);
284 otError ParseAsHexStringSegment(const char *&aString, uint16_t &aSize, uint8_t *aBuffer);
521 otError ParseAsHexString(uint8_t *aBuffer, uint16_t aSize) const in ParseAsHexString()
523 return CmdLineParser::ParseAsHexString(mString, aBuffer, aSize); in ParseAsHexString()
557 otError ParseAsHexString(uint16_t &aSize, uint8_t *aBuffer) in ParseAsHexString() argument
559 return CmdLineParser::ParseAsHexString(mString, aSize, aBuffer); in ParseAsHexString()
Dheap.hpp81 void SetSize(uint16_t aSize) { mSize = aSize; } in SetSize() argument
183 void *CAlloc(size_t aCount, size_t aSize);
/openthread-latest/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-latest/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.hpp83 …Error CryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize) { return otPlatCryptoRandomGet(aBuffer, a… in CryptoFillBuffer() argument
164 void FillBuffer(uint8_t *aBuffer, uint16_t aSize);
204 …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()
/openthread-latest/include/openthread/
Dsrp_client_buffers.h74 char *otSrpClientBuffersGetHostNameString(otInstance *aInstance, uint16_t *aSize);
139 …ntBuffersGetServiceEntryServiceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
150 …tBuffersGetServiceEntryInstanceNameString(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
160 …tSrpClientBuffersGetServiceEntryTxtBuffer(otSrpClientBuffersServiceEntry *aEntry, uint16_t *aSize);
/openthread-latest/tests/gtest/
Dfake_platform.cpp298 void FakePlatform::FlashRead(uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize) con… in FlashRead()
303 assert(aSize <= kFlashSwapSize); in FlashRead()
304 assert(aOffset <= (kFlashSwapSize - aSize)); in FlashRead()
308 memcpy(aData, mFlash + address + aOffset, aSize); in FlashRead()
311 …d FakePlatform::FlashWrite(uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize) in FlashWrite() argument
316 assert(aSize <= kFlashSwapSize); in FlashWrite()
317 assert(aOffset <= (kFlashSwapSize - aSize)); in FlashWrite()
321 for (uint32_t index = 0; index < aSize; index++) in FlashWrite()
475 void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
547 …id otPlatFlashRead(otInstance *, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize) in otPlatFlashRead() argument
[all …]
/openthread-latest/src/posix/platform/
Dmemory.cpp38 void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
/openthread-latest/src/core/net/
Dip4_types.cpp131 void Address::ToString(char *aBuffer, uint16_t aSize) const in ToString()
133 StringWriter writer(aBuffer, aSize); in ToString()
175 void Cidr::ToString(char *aBuffer, uint16_t aSize) const in ToString()
177 StringWriter writer(aBuffer, aSize); in ToString()
Dsocket.cpp53 void SockAddr::ToString(char *aBuffer, uint16_t aSize) const in ToString()
55 StringWriter writer(aBuffer, aSize); in ToString()
/openthread-latest/include/openthread/platform/
Dflash.h73 …lashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize);
84 …te(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize);
/openthread-latest/examples/apps/ncp/
Dmain.c64 OT_TOOL_WEAK void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
/openthread-latest/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-latest/src/posix/
Dclient.cpp134 bool DoWrite(int aFile, const void *aBuffer, size_t aSize) in DoWrite() argument
138 while (aSize) in DoWrite()
140 ssize_t rval = write(aFile, aBuffer, aSize); in DoWrite()
148 aSize -= static_cast<size_t>(rval); in DoWrite()
/openthread-latest/tests/unit/
Dtest_platform.cpp108 OT_TOOL_WEAK void *otPlatCAlloc(size_t aNum, size_t aSize) { return calloc(aNum, aSize); } in otPlatCAlloc() argument
389 …id otPlatFlashRead(otInstance *, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint32_t aSize) in otPlatFlashRead() argument
394 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashRead()
395 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashRead()
399 memcpy(aData, GetFlash() + address + aOffset, aSize); in otPlatFlashRead()
406 uint32_t aSize) in otPlatFlashWrite() argument
411 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashWrite()
412 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashWrite()
416 for (uint32_t index = 0; index < aSize; index++) in otPlatFlashWrite()

1234