afrusrsc 发表于 2016-6-17 18:46:45

Delphi里与C/C++里memcpy函数功能相同的函数是什么?

如题,Delphi里与C/C++里memcpy函数功能相同的函数是什么?
C/C++里是这样的:
memcpy(&struITSPlateResult, pAlarmInfo, sizeof(struITSPlateResult));
C#里也有类似的:
struITSPlateResult = (NET_ITS_PLATE_RESULT)Marshal.PtrToStructure(pAlarmInfo, typeof(NET_ITS_PLATE_RESULT));
Delphi里是什么呢?是Move吗?
Move(pAlarmInfo, struITSPlateResult, sizeof(struITSPlateResult));

youngeramy 发表于 2016-7-8 19:27:37

是海康的交通车牌吧,回调函数,我也遇到这个问题了,能问下怎么解决的吗?我是这样写的:
move(pAlarmInfo^,struPlateResult^,sizeof(NET_ITS_PLATE_RESULT));
但是车牌读出来的全是乱码!

afrusrsc 发表于 2017-7-15 13:20:30

youngeramy 发表于 2016-7-8 19:27
**** 作者被禁止或删除 内容自动屏蔽 ****

新的抓拍是这样的CopyMemory(@ITSPlateResult, AlarmInfo, SizeOf(ITSPlateResult));
页: [1]
查看完整版本: Delphi里与C/C++里memcpy函数功能相同的函数是什么?