Home > Back-end >  Delphi is the Union of C in how to write
Delphi is the Union of C in how to write

Time:03-16

In C
Typedef struct PU_UserData
{
LAYER_THREE_TYPE_E eType.
The union _unMetadata
{
BOOL bBoolValue;
CHAR charValue;
UCHAR ucharValue;
SHORT shortValue;
USHORT ushortValue;
INT IntValue;
UINT uIntValue;
LONGLONG longlongValue;
ULONGLONG uLonglongValue;
ST_BINARY stBinay;
META_RECT_S stRec;
META_POINT_S stPoint;
META_LINE_S stLine;
META_POLYGON_S stPolyGon;
META_COLOR_S stColor;
META_HUMAN_ATTRIBUTES_S stHumanAttr;
META_FACE_ATTRIBUTES_S stFaceAttr;
META_FACE_INFO_S stFaceInfo;
CHAR szUserData [1].
} unMetaData;
} PU_UserData;

CodePudding user response:

 unit Unit2. 

Interface

Type
PU_UserData=https://bbs.csdn.net/topics/record
EType: LAYER_THREE_TYPE_E;
UnMetaData: record
In case the integer of
0: (bBoolValue: Boolean);
1: (charValue: AnsiChar);
.
end;
end;

Implementation

End.
  • Related