在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
type TUserInfo = record sUserId,sUserName:String; iUserCount:integer; end; procedure TForm1.Button1Click(Sender: TObject); var fStream:TMemoryStream; fUserRec,sUserDD:TUserInfo; sDataText:String; begin try fUserRec.sUserId := 'UserId; fUserRec.sUserName := '张三峰'; fUserRec.iUserCount := 9876; fStream := TMemoryStream.Create; fStream.Write(fUserRec,SizeOf(TUserInfo)); fStream.Position := 0; ///sDataText := StreamToBase64(fStream); //MyInfo(sDataText); MyInfo(IntToStr(fStream.Size)); fStream.Read(sUserDD,sizeof(TUserInfo)); MyInfo(sUserDD.sUserId); finally freeAndNil(fStream); end; end;
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论