/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/tlv/ |
H A D | endian_converter.h | 24 static inline int8_t HostToNet(int8_t value) in HostToNet() function 28 static inline int16_t HostToNet(int16_t value) in HostToNet() function 38 static inline int32_t HostToNet(int32_t value) in HostToNet() function 53 static inline int64_t HostToNet(int64_t value) in HostToNet() function 63 static inline uint8_t HostToNet(uint8_t value) in HostToNet() function 67 static inline uint16_t HostToNet(uint16_t value) in HostToNet() function 77 static inline uint32_t HostToNet(uint32_t value) in HostToNet() function 92 static inline uint64_t HostToNet(uint64_t value) in HostToNet() function 102 static inline bool HostToNet(bool value) in HostToNet() function 112 inline double HostToNet(double value) in HostToNet() function [all …]
|
H A D | tlv_object.h | 365 tlvHead->tag = HostToNet(type); in WriteHead() 366 tlvHead->len = HostToNet(len); in WriteHead() 375 tlvHead->tag = HostToNet(type); in WriteBasic() 376 tlvHead->len = HostToNet((uint32_t)sizeof(value)); in WriteBasic() 377 auto valueBuff = HostToNet(value); in WriteBasic()
|
H A D | tlv_object.cpp | 72 tlvHead->tag = HostToNet(type); in Write() 73 tlvHead->len = HostToNet((uint32_t)value.size()); in Write() 91 tlvHead->tag = HostToNet(type); in Write() 102 tlvHead->len = HostToNet((uint32_t)value.bufferLen); in Write()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | header_converter.cpp | 23 headerConverted.magic = HostToNet(headerOriginal.magic); in ConvertHostToNet() 24 headerConverted.version = HostToNet(headerOriginal.version); in ConvertHostToNet() 25 headerConverted.packetLen = HostToNet(headerOriginal.packetLen); in ConvertHostToNet() 26 headerConverted.checkSum = HostToNet(headerOriginal.checkSum); in ConvertHostToNet() 27 headerConverted.sourceId = HostToNet(headerOriginal.sourceId); in ConvertHostToNet() 28 headerConverted.frameId = HostToNet(headerOriginal.frameId); in ConvertHostToNet() 29 headerConverted.packetType = HostToNet(headerOriginal.packetType); in ConvertHostToNet() 31 headerConverted.dbIntVer = HostToNet(headerOriginal.dbIntVer); in ConvertHostToNet() 36 headerConverted.frameLen = HostToNet(headerOriginal.frameLen); in ConvertHostToNet() 37 headerConverted.fragCount = HostToNet(headerOriginal.fragCount); in ConvertHostToNet() [all …]
|
H A D | protocol_proto.cpp | 249 *fieldPtr = HostToNet(static_cast<uint64_t>(PROTOCOL_VERSION)); in BuildLabelExchange() 251 *fieldPtr = HostToNet(inDistinctValue); in BuildLabelExchange() 253 *fieldPtr = HostToNet(inSequenceId); in BuildLabelExchange() 255 *fieldPtr = HostToNet(static_cast<uint64_t>(inLabels.size())); in BuildLabelExchange() 287 *fieldPtr = HostToNet(static_cast<uint64_t>(PROTOCOL_VERSION)); in BuildLabelExchangeAck() 289 *fieldPtr = HostToNet(inDistinctValue); in BuildLabelExchangeAck() 291 *fieldPtr = HostToNet(inSequenceId); in BuildLabelExchangeAck() 487 ptrPhyHeader->checkSum = HostToNet(sumResult); in SetPhyHeader() 1073 ptrPhyHeader->checkSum = HostToNet(sumResult); in FillFragmentPacket()
|
H A D | communicator_aggregator.cpp | 139 uint64_t netOrderLabel = HostToNet(commLabel); in AllocCommunicator()
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | endian_converter.h | 24 static inline int8_t HostToNet(int8_t value) in HostToNet() function 28 static inline int16_t HostToNet(int16_t value) in HostToNet() function 38 static inline int32_t HostToNet(int32_t value) in HostToNet() function 53 static inline int64_t HostToNet(int64_t value) in HostToNet() function 63 static inline uint8_t HostToNet(uint8_t value) in HostToNet() function 67 static inline uint16_t HostToNet(uint16_t value) in HostToNet() function 77 static inline uint32_t HostToNet(uint32_t value) in HostToNet() function 92 static inline uint64_t HostToNet(uint64_t value) in HostToNet() function 102 float HostToNet(float value); 106 double HostToNet(double value);
|
H A D | tlv_object.cpp | 139 tlvHead->tag = HostToNet(static_cast<uint16_t>(tag)); in Write() 140 tlvHead->len = HostToNet((uint32_t)value.size()); in Write() 176 tlvHead->tag = HostToNet(static_cast<uint16_t>(tag)); in Write() 177 tlvHead->len = HostToNet(static_cast<uint32_t>(value.size())); in Write() 222 tlvHead->tag = HostToNet(static_cast<uint16_t>(tag)); in Write() 223 tlvHead->len = HostToNet(static_cast<uint32_t>(size)); in Write() 301 tlvHead->tag = HostToNet(tag); in WriteHead() 302 tlvHead->len = HostToNet(len); in WriteHead() 314 tlvHead->tag = HostToNet(tag); in WriteBackHead() 315 tlvHead->len = HostToNet(len); in WriteBackHead()
|
H A D | endian_converter.cpp | 24 float HostToNet(float value) in HostToNet() function 54 double HostToNet(double value) in HostToNet() function
|
H A D | tlv_object.h | 107 tlvHead->tag = HostToNet(static_cast<uint16_t>(type)); in WriteBasic() 108 tlvHead->len = HostToNet((uint32_t)sizeof(value)); in WriteBasic() 109 auto valueBuff = HostToNet(value); in WriteBasic()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/utils/ |
H A D | endian_converter.h | 23 static inline uint16_t HostToNet(uint16_t value) in HostToNet() function 33 static inline uint32_t HostToNet(uint32_t value) in HostToNet() function 43 static inline uint64_t HostToNet(uint64_t value) in HostToNet() function
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/ |
H A D | adapter_stub.cpp | 408 phyHeader->magic = HostToNet(magicField_); in ApplySendBitError() 411 phyHeader->version = HostToNet(versionField_); in ApplySendBitError() 414 phyHeader->checkSum = HostToNet(checkSumField_); in ApplySendBitError() 417 phyHeader->packetLen = HostToNet(packetLenField_); in ApplySendBitError() 420 phyHeader->packetType = HostToNet(packetTypeField_); in ApplySendBitError() 423 phyHeader->paddingLen = HostToNet(paddingLenField_); in ApplySendBitError() 432 msgHeader->messageId = HostToNet(messageIdField_); in ApplySendBitError() 433 phyHeader->checkSum = HostToNet(CalculateXorSum(bytes + LENGTH_BEFORE_SUM_RANGE, in ApplySendBitError()
|
H A D | distributeddb_communicator_common.h | 100 DistributedDB::HostToNet(info.magic); in FillHeadData() 101 DistributedDB::HostToNet(info.length); in FillHeadData() 102 DistributedDB::HostToNet(info.version); in FillHeadData()
|
H A D | distributeddb_communicator_test.cpp | 525 uint64_t netOrderLabel = HostToNet(commLabel); in ToLabelType()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/ |
H A D | route_head_handler_impl.cpp | 152 head->magic = HostToNet(RouteHead::MAGIC_NUMBER); in PackDataHead() 153 head->version = HostToNet(RouteHead::VERSION); in PackDataHead() 154 head->checkSum = HostToNet(uint64_t(0)); in PackDataHead() 155 head->dataLen = HostToNet(uint32_t(totalLen - sizeof(RouteHead))); in PackDataHead() 176 userPair->sourceUserId = HostToNet(session_.sourceUserId); in PackDataBody() 179 *(userPair->targetUserIds + i) = HostToNet(session_.targetUserIds[i]); in PackDataBody() 193 appPair->len = HostToNet(appIdSize); in PackDataBody()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | utils_test.cpp | 179 HWTEST_F(ServiceUtilsTest, HostToNet, TestSize.Level1) 181 uint16_t netValue16 = HostToNet(HOST_VALUE16); 187 uint32_t netValue32 = HostToNet(HOST_VALUE32); 193 uint64_t netValue64 = HostToNet(HOST_VALUE64);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | endian_convert.h | 33 template<typename T> T HostToNet(const T &from) in HostToNet() function 51 return HostToNet(from); in NetToHost()
|
H A D | parcel.h | 79 len = HostToNet(len); in WriteVector() 94 *(reinterpret_cast<T *>(bufPtr_)) = HostToNet(iter); in WriteVector() 213 T inData = HostToNet(integer); in WriteInteger()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
H A D | rdb_cloud_data_translate.cpp | 35 auto size = DistributedData::HostToNet((uint16_t)data.length()); in AssetToBlob() 36 auto leMagic = DistributedData::HostToNet(ASSET_MAGIC); in AssetToBlob() 48 auto num = DistributedData::HostToNet((uint16_t)assets.size()); in AssetsToBlob() 49 auto leMagic = DistributedData::HostToNet(ASSETS_MAGIC); in AssetsToBlob()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_parcel_unit_test.cpp | 345 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(INT32_MAX)); 385 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(writeData.size()) + 1); 425 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(writeData.size()) - 1); 527 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(writeData.size()) - 1); 567 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(writeData.size()) + 1); 641 *(reinterpret_cast<uint32_t *>(buf)) = HostToNet(static_cast<uint32_t>(INT32_MAX));
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | parcel.cpp | 84 double inData = HostToNet(data); in WriteDouble() 164 len = HostToNet(len); in WriteString()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_natural_store.cpp | 57 block.magic = HostToNet(block.magic); in TransferHostFileBlockToNet() 58 block.fileVersion = HostToNet(block.fileVersion); in TransferHostFileBlockToNet() 59 block.version = HostToNet(block.version); in TransferHostFileBlockToNet()
|