/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | protocol_proto.h | 62 …static Message *ToMessage(const SerialBuffer *inBuff, int &outErrorNo, bool onlyMsgHeader = false); 72 static int SplitFrameIntoPacketsIfNeed(const SerialBuffer *inBuff, uint32_t inMtuSize, 88 static int SetDivergeHeader(SerialBuffer *inBuff, const LabelType &inCommLabel); 91 static int SetPhyHeader(SerialBuffer *inBuff, const PhyHeaderInfo &inInfo); 98 static int CheckAndParseFrame(const SerialBuffer *inBuff, ParseResult &outResult); 110 static int SerializeMessage(SerialBuffer *inBuff, const Message *inMsg); 111 static int DeSerializeMessage(const SerialBuffer *inBuff, Message *inMsg, bool onlyMsgHeader);
|
H A D | communicator_linker.cpp | 389 delete inBuff; in SendLabelExchange() 390 inBuff = nullptr; in SendLabelExchange() 396 SerialBuffer *cloneBuffer = inBuff->Clone(error); in SendLabelExchange() 398 …int errCode = aggregator_->ScheduleSendTask(toTarget, inBuff, FrameType::COMMUNICATION_LABEL_EXCHA… in SendLabelExchange() 412 SuspendByOnceTimer([this, toTarget, inBuff, inSequenceId, inRetransmitCount]() { in SendLabelExchange() 414 … SendLabelExchange(toTarget, inBuff, inSequenceId, inRetransmitCount); // Just do retry send in SendLabelExchange() 423 void CommunicatorLinker::SendLabelExchangeAck(const std::string &toTarget, SerialBuffer *inBuff, in SendLabelExchangeAck() argument 449 delete inBuff; in SendLabelExchangeAck() 450 inBuff = nullptr; in SendLabelExchangeAck() 462 SuspendByOnceTimer([this, toTarget, inBuff, inSequenceId, inAckTriggerId]() { in SendLabelExchangeAck() [all …]
|
H A D | protocol_proto.cpp | 157 if (inBuff == nullptr) { in ToMessage() 318 …FrameFragmentInfo fragInfo = {inBuff->GetOringinalAddr(), inBuff->GetExtendHeadLength(), lengthToS… in SplitFrameIntoPacketsIfNeed() 405 if (inBuff == nullptr) { in SetDivergeHeader() 408 auto headerByteLen = inBuff->GetWritableBytesForHeader(); in SetDivergeHeader() 412 auto payloadByteLen = inBuff->GetReadOnlyBytesForPayload(); in SetDivergeHeader() 444 if (inBuff == nullptr) { in SetPhyHeader() 447 auto headerByteLen = inBuff->GetWritableBytesForHeader(); in SetPhyHeader() 452 auto frameByteLen = inBuff->GetReadOnlyBytesForEntireFrame(); in SetPhyHeader() 529 if (inBuff == nullptr || outResult.IsFragment()) { in CheckAndParseFrame() 624 auto payloadByteLen = inBuff->GetWritableBytesForPayload(); in SerializeMessage() [all …]
|
H A D | communicator_linker.h | 92 void SendLabelExchange(const std::string &toTarget, SerialBuffer *inBuff, uint64_t inSequenceId, 94 …void SendLabelExchangeAck(const std::string &toTarget, SerialBuffer *inBuff, uint64_t inSequenceId,
|
H A D | communicator_aggregator.cpp | 295 int CommunicatorAggregator::ScheduleSendTask(const std::string &dstTarget, SerialBuffer *inBuff, in ScheduleSendTask() argument 298 if (inBuff == nullptr) { in ScheduleSendTask() 303 delete inBuff; in ScheduleSendTask() 304 inBuff = nullptr; in ScheduleSendTask() 315 int errCode = ProtocolProto::SetPhyHeader(inBuff, info); in ScheduleSendTask() 324 SendTask task{inBuff, dstTarget, onEnd, info.frameId, true}; in ScheduleSendTask()
|
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_buffer.cpp | 73 bool MmsBuffer::WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len) in WriteDataBuffer() argument 75 if (inBuff == nullptr) { in WriteDataBuffer() 93 if (memcpy_s(pduBuffer_.get(), len, inBuff.get(), len) != EOK) { in WriteDataBuffer()
|
H A D | mms_attachment.cpp | 212 bool MmsAttachment::SetDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len) in SetDataBuffer() argument 214 if (inBuff == nullptr) { in SetDataBuffer() 228 if (memcpy_s(pAttachmentBuffer_.get(), len, inBuff.get(), len) != EOK) { in SetDataBuffer()
|
H A D | mms_msg.cpp | 46 bool MmsMsg::DecodeMsg(std::unique_ptr<char[]> inBuff, uint32_t inLen) in DecodeMsg() argument 49 if (!decodeBuffer.WriteDataBuffer(std::move(inBuff), inLen)) { in DecodeMsg()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
H A D | nstackx_mbedtls.h | 60 NSTACKX_EXPORT uint32_t AesGcmEncrypt(const uint8_t *inBuff, uint32_t inLen, CryptPara *cryptPara, 62 NSTACKX_EXPORT uint32_t AesGcmDecrypt(uint8_t *inBuff, uint32_t inLen, CryptPara *cryptPara,
|
H A D | nstackx_openssl.h | 75 NSTACKX_EXPORT uint32_t AesGcmEncrypt(const uint8_t *inBuff, uint32_t inLen, CryptPara *cryptPara, 77 NSTACKX_EXPORT uint32_t AesGcmDecrypt(uint8_t *inBuff, uint32_t inLen, CryptPara *cryptPara,
|
/ohos5.0/base/telephony/sms_mms/test/fuzztest/wappushbuffer_fuzzer/ |
H A D | wappushbuffer_fuzzer.cpp | 44 std::unique_ptr<char[]> inBuff = std::make_unique<char[]>(desLen); in WapPushBuffer() local 45 decodeBuffer->WriteDataBuffer(std::move(inBuff), desLen); in WapPushBuffer()
|
/ohos5.0/base/telephony/sms_mms/services/sms/ |
H A D | sms_wap_push_buffer.cpp | 83 bool SmsWapPushBuffer::WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len) in WriteDataBuffer() argument 85 if (inBuff == nullptr) { in WriteDataBuffer() 103 if (memcpy_s(pduBuffer_.get(), len, inBuff.get(), len) != EOK) { in WriteDataBuffer()
|
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/include/ |
H A D | mms_buffer.h | 31 virtual bool WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
|
/ohos5.0/base/telephony/sms_mms/interfaces/innerkits/ |
H A D | mms_attachment.h | 185 bool SetDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
|
H A D | mms_msg.h | 308 bool DecodeMsg(std::unique_ptr<char[]> inBuff, uint32_t inLen);
|
/ohos5.0/base/telephony/sms_mms/services/sms/include/ |
H A D | sms_wap_push_buffer.h | 33 virtual bool WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
|
/ohos5.0/base/telephony/sms_mms/frameworks/js/napi/include/ |
H A D | napi_mms.h | 64 std::unique_ptr<char[]> inBuff = nullptr; member
|
/ohos5.0/base/telephony/sms_mms/interfaces/kits/js/ |
H A D | @ohos.telephony.sms.d.ts | 1828 inBuff?: Array<number>;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/include/ |
H A D | communicator_aggregator.h | 87 int ScheduleSendTask(const std::string &dstTarget, SerialBuffer *inBuff, FrameType inType,
|
/ohos5.0/base/telephony/sms_mms/test/gtest/ |
H A D | mms_gtest.cpp | 950 std::unique_ptr<char[]> inBuff = std::make_unique<char[]>(len); variable 952 inBuff[i] = 1; 954 decodeBuffer.WriteDataBuffer(std::move(inBuff), len);
|
H A D | zero_branch_mms_test.cpp | 1045 std::unique_ptr<char[]> inBuff = std::make_unique<char[]>(2); variable 1046 inBuff[0] = 1; 1047 inBuff[1] = 1; 1048 EXPECT_FALSE(mmsMsg.DecodeMsg(std::move(inBuff), 2));
|
/ohos5.0/base/telephony/sms_mms/frameworks/js/napi/src/ |
H A D | napi_mms.cpp | 38 napi_create_int32(env, context.inBuff[i], &element); in SetPropertyArray() 289 attachmentContext.inBuff = std::move(buffer); in getAttachmentByDecodeMms() 1051 attachmentContext.inBuff = std::make_unique<char[]>(arrayLength); in BuildMmsAttachment() 1052 if (attachmentContext.inBuff == nullptr) { in BuildMmsAttachment() 1060 attachmentContext.inBuff[i] = static_cast<char>(elementInt); in BuildMmsAttachment() 1175 itAttachment.SetDataBuffer(std::move(it->inBuff), it->inBuffLen); in SetAttachmentToCore()
|
/ohos5.0/base/telephony/sms_mms/ |
H A D | README_zh.md | 275 inBuff: [],
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-telephony-kit/ |
H A D | js-apis-sms-sys.md | 2091 | inBuff | Array<number\> | 否 | 缓冲区中 |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/ |
H A D | js-apidiff-telephony.md | 827 |访问级别有变化|类名:MmsAttachment;<br>方法or属性:inBuff?: Array\<number>;<br>旧版本信息:|类名:MmsAttachment;<br>方法or属性… 1203 |type有变化|类名:MmsAttachment;<br>方法or属性:inBuff?: Array\<number>;<br>旧版本信息:|类名:MmsAttachment;<br>方法or属性…
|