Home
last modified time | relevance | path

Searched refs:fastDataSize (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_message.c391 size_t fastDataSize = 0; in PackHandshakeMsgForFastData() local
633 int32_t len, uint16_t *fastDataSize) in TransProxyUnpackHandshakeAckMsg() argument
635 TRANS_CHECK_AND_RETURN_RET_LOGE(msg != NULL && chanInfo != NULL && fastDataSize != NULL, in TransProxyUnpackHandshakeAckMsg()
669 !GetJsonObjectNumber16Item(root, JSON_KEY_FIRST_DATA_SIZE, fastDataSize) || in TransProxyUnpackHandshakeAckMsg()
705 size_t fastDataSize = 0; in UnpackPackHandshakeMsgForFastData() local
988 uint16_t fastDataSize = appInfo->fastTransDataSize; in TransProxyMessageData() local
989 if (memcpy_s(dataInfo->inData, fastDataSize, appInfo->fastTransData, fastDataSize) != EOK) { in TransProxyMessageData()
994 dataInfo->inLen = fastDataSize; in TransProxyMessageData()
1005 uint16_t fastDataSize = appInfo->fastTransDataSize; in TransProxyByteData() local
1010 … (memcpy_s(dataInfo->inData + sizeof(SessionHead), fastDataSize, appInfo->fastTransData, fastDataS… in TransProxyByteData()
[all …]
H A Dsoftbus_proxychannel_manager.c799 ProxyChannelInfo *info, const ProxyMessage *msg, int32_t errCode, uint16_t *fastDataSize) in TransProxyHandshakeUnpackRightMsg() argument
801 if (fastDataSize == NULL) { in TransProxyHandshakeUnpackRightMsg()
805 int32_t ret = TransProxyUnpackHandshakeAckMsg(msg->data, info, msg->dateLen, fastDataSize); in TransProxyHandshakeUnpackRightMsg()
835 uint16_t fastDataSize = 0; in TransProxyProcessHandshakeAckMsg() local
850 if (TransProxyHandshakeUnpackRightMsg(&info, msg, errCode, &fastDataSize) != SOFTBUS_OK) { in TransProxyProcessHandshakeAckMsg()
865 …if (info.appInfo.fastTransDataSize <= 0 || (fastDataSize > 0 && fastDataSize == info.appInfo.fastT… in TransProxyProcessHandshakeAckMsg()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c78 size_t fastDataSize = 0; in PackFirstData() local
79 int32_t ret = SoftBusBase64Encode(encodeFastData, BASE64_FAST_DATA_LEN, &fastDataSize, in PackFirstData()
184 size_t fastDataSize = 0; in UnpackFirstData() local
197 FAST_TDC_EXT_DATA_SIZE, &fastDataSize, encodeFastData, strlen((char *)encodeFastData)); in UnpackFirstData()
357 int32_t UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) in UnpackReply() argument
373 if (!GetJsonObjectNumber16Item(msg, FIRST_DATA_SIZE, fastDataSize)) { in UnpackReply()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/include/
H A Dsoftbus_message_open_channel.h79 int32_t UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_message_test_mock.cpp95 int UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) in UnpackReply() argument
97 return GetTransTcpDirectMessageInterface()->UnpackReply(msg, appInfo, fastDataSize); in UnpackReply()
H A Dtrans_tcp_direct_message_test_mock.h51 virtual int UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) = 0;
101 MOCK_METHOD3(UnpackReply, int (const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize));
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp245 uint16_t fastDataSize = 1; variable
246 ret = UnpackReply(json, appInfo, &fastDataSize);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/
H A Dsoftbus_proxychannel_message_test.cpp246 uint16_t fastDataSize = FAST_TRANS_DATASIZE; variable
258 ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize);
266 ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize);
281 uint16_t fastDataSize = FAST_TRANS_DATASIZE; variable
288 int32_t ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/include/
H A Dsoftbus_proxychannel_message.h165 int32_t len, uint16_t *fastDataSize);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_message.c631 uint16_t fastDataSize = 0; in OpenDataBusReply() local
632 TRANS_CHECK_AND_RETURN_RET_LOGE(UnpackReply(reply, &conn.appInfo, &fastDataSize) == SOFTBUS_OK, in OpenDataBusReply()
641 …if ((fastDataSize > 0 && (conn.appInfo.fastTransDataSize == fastDataSize)) || conn.appInfo.fastTra… in OpenDataBusReply()