Searched refs:bytes_read (Results 1 – 1 of 1) sorted by relevance
112 size_t bytes_read = 0; in otTcpMbedTlsSslRecvCallback() local119 while (bytes_read != aLen && buffer != nullptr) in otTcpMbedTlsSslRecvCallback()121 size_t to_copy = OT_MIN(aLen - bytes_read, buffer->mLength); in otTcpMbedTlsSslRecvCallback()122 memcpy(&aBuf[bytes_read], buffer->mData, to_copy); in otTcpMbedTlsSslRecvCallback()123 bytes_read += to_copy; in otTcpMbedTlsSslRecvCallback()126 VerifyOrExit(aLen == 0 || bytes_read != 0, result = MBEDTLS_ERR_SSL_WANT_READ); in otTcpMbedTlsSslRecvCallback()127 IgnoreReturnValue(otTcpCommitReceive(endpoint, bytes_read, 0)); in otTcpMbedTlsSslRecvCallback()128 result = static_cast<int>(bytes_read); in otTcpMbedTlsSslRecvCallback()