Home > Back-end >  Into the Delphi
Into the Delphi

Time:09-29

Public struct NET_DVR_PLAYCOND
{
Public uint dwChannel;
Public NET_DVR_TIME struStartTime;
Public NET_DVR_TIME struStopTime;
Public byte byDrawFrame;//0: don't draw frame, 1: draw frame
[MarshalAsAttribute (UnmanagedType ByValArray, SizeConst=63, ArraySubType=UnmanagedType. I1)]
Public byte [] byRes;//keep
}

CodePudding user response:

 type 
NET_DVR_PLAYCOND=record
DwChannel: DWORD;
StruStartTime: NET_DVR_TIME;
StruStopTime: NET_DVR_TIME;
ByDrawFrame: byte;
ByRes: an array of byte;
end;

As for [MarshalAsAttribute (UnmanagedType ByValArray, SizeConst=63, ArraySubType=UnmanagedType. I1)], this new version of Delphi is a custom Attribute, you need to see you. What's the corresponding function of net, and then Delphi do Attribute definitions according to the corresponding function, then a similar statement, also don't know what's NET_DVR_TIME structure, their corresponding definition, actually such thing as a conversion code, nothing too much attention to, understand the data type corresponding to go

CodePudding user response:

To adapt to a c + +, it is better to add a packet
  • Related