Home
last modified time | relevance | path

Searched refs:inPacketType (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dprotocol_proto.cpp48 void SetFrameType(FrameType inFrameType, uint8_t &inPacketType) in SetFrameType() argument
50 inPacketType &= 0x0F; // Use 0x0F to clear high four bits in SetFrameType()
51 inPacketType |= (static_cast<uint8_t>(inFrameType) << 4); // frame type is on high 4 bits in SetFrameType()
54 FrameType GetFrameType(uint8_t inPacketType) in GetFrameType() argument
56 uint8_t frameType = ((inPacketType & 0xF0) >> 4); // Use 0xF0 to get high 4 bits in GetFrameType()
63 bool IsSendLabelExchange(uint8_t inPacketType) in IsSendLabelExchange() argument
65 …return ((inPacketType & 0x08) >> 3) == 0; // Use 0x08 and remove low 3 bit, it is Communication ne… in IsSendLabelExchange()
68 void SetSendLabelExchange(uint8_t &inPacketType, bool sendLabelExchange) in SetSendLabelExchange() argument
71 inPacketType |= 0x08; // mark 0x08 when not support communication in SetSendLabelExchange()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/
H A Dadapter_stub.cpp324 void AdapterStub::SimulateSendBitErrorInPacketTypeField(bool doFlag, uint8_t inPacketType) in SimulateSendBitErrorInPacketTypeField() argument
327 packetTypeField_ = inPacketType; in SimulateSendBitErrorInPacketTypeField()
H A Dadapter_stub.h83 void SimulateSendBitErrorInPacketTypeField(bool doFlag, uint8_t inPacketType);