Home
last modified time | relevance | path

Searched refs:instanceBufferLength (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/tests/gtest/
Dfake_platform.cpp70 size_t instanceBufferLength = 0; in FakePlatform() local
73 otInstanceInit(nullptr, &instanceBufferLength); in FakePlatform()
75 instanceBuffer = malloc(instanceBufferLength); in FakePlatform()
77 memset(instanceBuffer, 0, instanceBufferLength); in FakePlatform()
79 mInstance = otInstanceInit(instanceBuffer, &instanceBufferLength); in FakePlatform()
/openthread-latest/tests/unit/
Dtest_platform.cpp59 size_t instanceBufferLength = 0; in testInitInstance() local
63 (void)otInstanceInit(nullptr, &instanceBufferLength); in testInitInstance()
66 instanceBuffer = (uint8_t *)malloc(instanceBufferLength); in testInitInstance()
68 memset(instanceBuffer, 0, instanceBufferLength); in testInitInstance()
71 instance = otInstanceInit(instanceBuffer, &instanceBufferLength); in testInitInstance()