Home
last modified time | relevance | path

Searched refs:inBuff (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dprotocol_proto.h62 …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 Dcommunicator_linker.cpp389 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 Dprotocol_proto.cpp157 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 Dcommunicator_linker.h92 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 Dcommunicator_aggregator.cpp295 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 Dmms_buffer.cpp73 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 Dmms_attachment.cpp212 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 Dmms_msg.cpp46 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 Dnstackx_mbedtls.h60 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 Dnstackx_openssl.h75 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 Dwappushbuffer_fuzzer.cpp44 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 Dsms_wap_push_buffer.cpp83 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 Dmms_buffer.h31 virtual bool WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
/ohos5.0/base/telephony/sms_mms/interfaces/innerkits/
H A Dmms_attachment.h185 bool SetDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
H A Dmms_msg.h308 bool DecodeMsg(std::unique_ptr<char[]> inBuff, uint32_t inLen);
/ohos5.0/base/telephony/sms_mms/services/sms/include/
H A Dsms_wap_push_buffer.h33 virtual bool WriteDataBuffer(std::unique_ptr<char[]> inBuff, uint32_t len);
/ohos5.0/base/telephony/sms_mms/frameworks/js/napi/include/
H A Dnapi_mms.h64 std::unique_ptr<char[]> inBuff = nullptr; member
/ohos5.0/base/telephony/sms_mms/interfaces/kits/js/
H A D@ohos.telephony.sms.d.ts1828 inBuff?: Array<number>;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/include/
H A Dcommunicator_aggregator.h87 int ScheduleSendTask(const std::string &dstTarget, SerialBuffer *inBuff, FrameType inType,
/ohos5.0/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp950 std::unique_ptr<char[]> inBuff = std::make_unique<char[]>(len); variable
952 inBuff[i] = 1;
954 decodeBuffer.WriteDataBuffer(std::move(inBuff), len);
H A Dzero_branch_mms_test.cpp1045 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 Dnapi_mms.cpp38 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 DREADME_zh.md275 inBuff: [],
/ohos5.0/docs/zh-cn/application-dev/reference/apis-telephony-kit/
H A Djs-apis-sms-sys.md2091 | inBuff | Array<number\> | 否 | 缓冲区中 |
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-telephony.md827 |访问级别有变化|类名:MmsAttachment;<br>方法or属性:inBuff?: Array\<number>;<br>旧版本信息:|类名:MmsAttachment;<br>方法or属性…
1203 |type有变化|类名:MmsAttachment;<br>方法or属性:inBuff?: Array\<number>;<br>旧版本信息:|类名:MmsAttachment;<br>方法or属性…

12