Home
last modified time | relevance | path

Searched refs:fragLength (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
H A Dpacket.c446 uint32_t PacketFragment(Packet *uplayer, const Packet *downlayer, uint32_t fragLength) in PacketFragment() argument
450 if (fragLength == 0) { in PacketFragment()
456 while (first != NULL && fragLength > 0) { in PacketFragment()
458 if (fragLength >= buffSize) { in PacketFragment()
462 fragLength -= buffSize; in PacketFragment()
473 dFirst->next->buf = BufferSliceMalloc(first->buf, 0, fragLength); in PacketFragment()
475 first->buf = BufferResize(first->buf, fragLength, buffSize - fragLength); in PacketFragment()
476 fragLength = 0; in PacketFragment()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dframe_combiner.cpp137 uint32_t fragLength = oriWork.status.GetThisFragmentLength(inPacketInfo.GetFragNo()); in ContinueExistCombineWork() local
138 …ode = ProtocolProto::CombinePacketIntoFrame(oriWork.buffer, bytes, length, fragOffset, fragLength); in ContinueExistCombineWork()
179 uint32_t fragLength = work.status.GetThisFragmentLength(inPacketInfo.GetFragNo()); in CreateNewCombineWork() local
180 …rrCode = ProtocolProto::CombinePacketIntoFrame(work.buffer, bytes, length, fragOffset, fragLength); in CreateNewCombineWork()
H A Dprotocol_proto.h78 uint32_t fragOffset, uint32_t fragLength);
H A Dprotocol_proto.cpp359 uint32_t fragOffset, uint32_t fragLength) in CombinePacketIntoFrame() argument
363 if (sizeof(CommPhyHeader) + sizeof(CommPhyOptHeader) + fragLength > pktLength) { in CombinePacketIntoFrame()
368 if (sizeof(CommPhyHeader) + fragOffset + fragLength > frameByteLen.second) { in CombinePacketIntoFrame()
375 errno_t errCode = memcpy_s(dstByteHead, dstLeftLen, srcByteHead, fragLength); in CombinePacketIntoFrame()