Searched refs:remainLength (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_session.cpp | 212 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 D | obex_session.h | 169 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 D | nstackx_dfile_frame.c | 94 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 D | l2cap_core.c | 956 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 D | l2cap_le.c | 614 int remainLength = PacketFragment(pkt, frag, chan->rcfg.mps); in L2capLeSegmentPacketWithCredit() local 628 if (remainLength == 0) { in L2capLeSegmentPacketWithCredit()
|