Home > Back-end >  Delphi frame package problem
Delphi frame package problem

Time:09-18

Buffer:=Copy (Buffer, FrameStart + FrameLen, Length (Buffer) - FrameStart - FrameLen + 1);

Don't know how to explain the beginning and length

How do you understand? This is FrameLen FrameStart +? He should be just a start bit!



CodePudding user response:

FrameStart as the end of the frame, you add a FrameLen is a frame is a tail, is from the original position of the tail frame as the Copy, have been copied to the Buffer tail, equivalent to take away the frame data from the Buffer.

CodePudding user response:

reference 1st floor liangqingzhi response:
FrameStart as the end of the frame, you add a FrameLen is a frame is a tail, is from the original position of the tail frame as the Copy, have been copied to the Buffer tail, equivalent to the frame data taken from the Buffer,





Thank you very much for your reply
  • Related