1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | //***************************************************************************** |
5 | // File: CAHLPR.H |
6 | // |
7 | // |
8 | // |
9 | //***************************************************************************** |
10 | #ifndef __CAHLPR_H__ |
11 | #define __CAHLPR_H__ |
12 | |
13 | #include "caparser.h" |
14 | |
15 | //***************************************************************************** |
16 | // This class assists in the parsing of CustomAttribute blobs. |
17 | //***************************************************************************** |
18 | struct CaValue |
19 | { |
20 | union |
21 | { |
22 | signed __int8 i1; |
23 | unsigned __int8 u1; |
24 | signed __int16 i2; |
25 | unsigned __int16 u2; |
26 | signed __int32 i4; |
27 | unsigned __int32 u4; |
28 | signed __int64 i8; |
29 | unsigned __int64 u8; |
30 | float r4; |
31 | double r8; |
32 | struct |
33 | { |
34 | LPCUTF8 pStr; |
35 | ULONG cbStr; |
36 | } str; |
37 | }; |
38 | unsigned __int8 tag; |
39 | }; |
40 | |
41 | #endif // __CAHLPR_H__ |
42 | |