S
sujing1982
Unregistered / Unconfirmed
GUEST, unregistred user!
学习别人写的代码 有点不明白 请指点一下
type
TSendBuffer = packed record
masmID : Word
ID : Word;
F1 : DWord;
F2 : DWord;
F3 : DWord;
F4 : DWord;
Len : DWord;
MD : Int64;
buffer : array [0..packsize-1] of byte;
end;
var
Snd : TSendBuffer ;
TP, UP, PSnd : Pbyte;
File_name :string;
begin
Snd.ID := 0
TP := PSnd;
Inc(TP,32);
File_name := ExtractFileName(Edit2.Text);
Snd.Len := Length(File_name) + 1;
Snd.F1 := FileSize;
UP := @File_name;
move(UP^,TP^,Snd.Len); {这个地方是什么意思?}
FClient.Socket.Send(PSnd^,Snd.Len + 32);
type
TSendBuffer = packed record
masmID : Word
ID : Word;
F1 : DWord;
F2 : DWord;
F3 : DWord;
F4 : DWord;
Len : DWord;
MD : Int64;
buffer : array [0..packsize-1] of byte;
end;
var
Snd : TSendBuffer ;
TP, UP, PSnd : Pbyte;
File_name :string;
begin
Snd.ID := 0
TP := PSnd;
Inc(TP,32);
File_name := ExtractFileName(Edit2.Text);
Snd.Len := Length(File_name) + 1;
Snd.F1 := FileSize;
UP := @File_name;
move(UP^,TP^,Snd.Len); {这个地方是什么意思?}
FClient.Socket.Send(PSnd^,Snd.Len + 32);