Home
last modified time | relevance | path

Searched refs:remainLength (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_session.cpp212 bool ObexClientSendObject::SetBodyToHeader(ObexHeader &header, const uint16_t &remainLength) in SetBodyToHeader() argument
214 auto buf = std::make_unique<uint8_t[]>(remainLength); in SetBodyToHeader()
215 int cnt = bodyReader_->Read(buf.get(), remainLength); in SetBodyToHeader()
219 if (cnt < remainLength) { in SetBodyToHeader()
270 …uint16_t remainLength = mtu_ - pktLen - ObexHeader::HDR_BYTES_PREFIX_LENGTH; // 3: body header+len in GetNextReqHeader() local
271 if (!SetBodyToHeader(*header, remainLength)) { in GetNextReqHeader()
540 bool ObexServerSendObject::SetBodyToHeader(ObexHeader &header, const uint16_t &remainLength) in SetBodyToHeader() argument
542 auto buf = std::make_unique<uint8_t[]>(remainLength); in SetBodyToHeader()
543 int cnt = bodyReader_->Read(buf.get(), remainLength); in SetBodyToHeader()
547 if (cnt < remainLength) { in SetBodyToHeader()
[all …]
H A Dobex_session.h169 bool SetBodyToHeader(ObexHeader &header, const uint16_t &remainLength);
338 bool SetBodyToHeader(ObexHeader &header, const uint16_t &remainLength);
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_frame.c94 size_t remainLength; in EncodeFileInfo() local
124 remainLength = length - offsetof(FileInfoUnit, fileName); in EncodeFileInfo()
125 if (memcpy_s(fileInfoUnit->fileName, remainLength, fileName, fileNameLen) != EOK) { in EncodeFileInfo()
127 …DFILE_LOGE(TAG, "memcpy_s fileName error. remain length %zu, fileNameLen %hu", remainLength, fileN… in EncodeFileInfo()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
H A Dl2cap_core.c956 int remainLength = PacketFragment(pkt, frag, chan->rcfg.rfc.mps); in L2capSendIFrame() local
964 if (remainLength == 0) { in L2capSendIFrame()
969 if (remainLength > chan->rcfg.rfc.mps) { in L2capSendIFrame()
H A Dl2cap_le.c614 int remainLength = PacketFragment(pkt, frag, chan->rcfg.mps); in L2capLeSegmentPacketWithCredit() local
628 if (remainLength == 0) { in L2capLeSegmentPacketWithCredit()