|
4 | 4 | namespace nanoFramework.MessagePack |
5 | 5 | { |
6 | 6 | /// <summary> |
7 | | - /// Supporting MessagePack types |
| 7 | + /// Supporting MessagePack types. |
8 | 8 | /// </summary> |
9 | 9 | public enum DataTypes : byte |
10 | 10 | { |
| 11 | + /// <summary> |
| 12 | + /// Represents a null value in MessagePack. |
| 13 | + /// </summary> |
11 | 14 | Null = 0xc0, |
12 | 15 |
|
| 16 | + /// <summary> |
| 17 | + /// Represents a boolean false value in MessagePack. |
| 18 | + /// </summary> |
13 | 19 | False = 0xc2, |
14 | 20 |
|
| 21 | + /// <summary> |
| 22 | + /// Represents a boolean true value in MessagePack. |
| 23 | + /// </summary> |
15 | 24 | True = 0xc3, |
16 | 25 |
|
| 26 | + /// <summary> |
| 27 | + /// Represents a 32-bit floating-point number in MessagePack. |
| 28 | + /// </summary> |
17 | 29 | Single = 0xca, |
18 | 30 |
|
| 31 | + /// <summary> |
| 32 | + /// Represents a 64-bit floating-point number in MessagePack. |
| 33 | + /// </summary> |
19 | 34 | Double = 0xcb, |
20 | 35 |
|
| 36 | + /// <summary> |
| 37 | + /// Represents an unsigned 8-bit integer in MessagePack. |
| 38 | + /// </summary> |
21 | 39 | UInt8 = 0xcc, |
22 | 40 |
|
| 41 | + /// <summary> |
| 42 | + /// Represents an unsigned 16-bit integer in MessagePack. |
| 43 | + /// </summary> |
23 | 44 | UInt16 = 0xcd, |
24 | 45 |
|
| 46 | + /// <summary> |
| 47 | + /// Represents an unsigned 32-bit integer in MessagePack. |
| 48 | + /// </summary> |
25 | 49 | UInt32 = 0xce, |
26 | 50 |
|
| 51 | + /// <summary> |
| 52 | + /// Represents an unsigned 64-bit integer in MessagePack. |
| 53 | + /// </summary> |
27 | 54 | UInt64 = 0xcf, |
28 | 55 |
|
29 | | - NegativeFixNum = 0xe0, //last 5 bits is value |
| 56 | + /// <summary> |
| 57 | + /// Represents a negative fixed integer in MessagePack (last 5 bits are the value). |
| 58 | + /// </summary> |
| 59 | + /// <remarks>Last 5 bits is the value.</remarks> |
| 60 | + NegativeFixNum = 0xe0, |
30 | 61 |
|
| 62 | + /// <summary> |
| 63 | + /// Represents a positive fixed integer in MessagePack. |
| 64 | + /// </summary> |
31 | 65 | PositiveFixNum = 0x7f, |
32 | 66 |
|
| 67 | + /// <summary> |
| 68 | + /// Represents a signed 8-bit integer in MessagePack. |
| 69 | + /// </summary> |
33 | 70 | Int8 = 0xd0, |
34 | 71 |
|
| 72 | + /// <summary> |
| 73 | + /// Represents a signed 16-bit integer in MessagePack. |
| 74 | + /// </summary> |
35 | 75 | Int16 = 0xd1, |
36 | 76 |
|
| 77 | + /// <summary> |
| 78 | + /// Represents a signed 32-bit integer in MessagePack. |
| 79 | + /// </summary> |
37 | 80 | Int32 = 0xd2, |
38 | 81 |
|
| 82 | + /// <summary> |
| 83 | + /// Represents a signed 64-bit integer in MessagePack. |
| 84 | + /// </summary> |
39 | 85 | Int64 = 0xd3, |
40 | 86 |
|
41 | | - FixArray = 0x90, //last 4 bits is size |
| 87 | + /// <summary> |
| 88 | + /// Represents a fixed-size array in MessagePack (last 4 bits are the size). |
| 89 | + /// </summary> |
| 90 | + /// <remarks>Last 4 bits is the size.</remarks> |
| 91 | + FixArray = 0x90, |
42 | 92 |
|
| 93 | + /// <summary> |
| 94 | + /// Represents an array with up to 16-bit length in MessagePack. |
| 95 | + /// </summary> |
43 | 96 | Array16 = 0xdc, |
44 | 97 |
|
| 98 | + /// <summary> |
| 99 | + /// Represents an array with up to 32-bit length in MessagePack. |
| 100 | + /// </summary> |
45 | 101 | Array32 = 0xdd, |
46 | 102 |
|
47 | | - FixMap = 0x80, //last 4 bits is size |
| 103 | + /// <summary> |
| 104 | + /// Represents a fixed-size map in MessagePack (last 4 bits are the size). |
| 105 | + /// </summary> |
| 106 | + /// <remarks>Last 4 bits is the size.</remarks> |
| 107 | + FixMap = 0x80, |
48 | 108 |
|
| 109 | + /// <summary> |
| 110 | + /// Represents a map with up to 16-bit length in MessagePack. |
| 111 | + /// </summary> |
49 | 112 | Map16 = 0xde, |
50 | 113 |
|
| 114 | + /// <summary> |
| 115 | + /// Represents a map with up to 32-bit length in MessagePack. |
| 116 | + /// </summary> |
51 | 117 | Map32 = 0xdf, |
52 | 118 |
|
53 | | - FixStr = 0xa0, //last 5 bits is size |
| 119 | + /// <summary> |
| 120 | + /// Represents a fixed-size string in MessagePack (last 5 bits are the size). |
| 121 | + /// </summary> |
| 122 | + /// <remarks>Last 5 bits is the length.</remarks> |
| 123 | + FixStr = 0xa0, |
54 | 124 |
|
| 125 | + /// <summary> |
| 126 | + /// Represents a string with up to 8-bit length in MessagePack. |
| 127 | + /// </summary> |
55 | 128 | Str8 = 0xd9, |
56 | 129 |
|
| 130 | + /// <summary> |
| 131 | + /// Represents a string with up to 16-bit length in MessagePack. |
| 132 | + /// </summary> |
57 | 133 | Str16 = 0xda, |
58 | 134 |
|
| 135 | + /// <summary> |
| 136 | + /// Represents a string with up to 32-bit length in MessagePack. |
| 137 | + /// </summary> |
59 | 138 | Str32 = 0xdb, |
60 | 139 |
|
| 140 | + /// <summary> |
| 141 | + /// Represents a binary data with up to 8-bit length in MessagePack. |
| 142 | + /// </summary> |
61 | 143 | Bin8 = 0xc4, |
62 | 144 |
|
| 145 | + /// <summary> |
| 146 | + /// Represents a binary data with up to 16-bit length in MessagePack. |
| 147 | + /// </summary> |
63 | 148 | Bin16 = 0xc5, |
64 | 149 |
|
| 150 | + /// <summary> |
| 151 | + /// Represents a binary data with up to 32-bit length in MessagePack. |
| 152 | + /// </summary> |
65 | 153 | Bin32 = 0xc6, |
66 | 154 |
|
| 155 | + /// <summary> |
| 156 | + /// Represents a 32-bit timestamp in MessagePack. |
| 157 | + /// </summary> |
67 | 158 | Timestamp32 = 0xd6, |
68 | 159 |
|
| 160 | + /// <summary> |
| 161 | + /// Represents a 64-bit timestamp in MessagePack. |
| 162 | + /// </summary> |
69 | 163 | Timestamp64 = 0xd7, |
70 | 164 |
|
| 165 | + /// <summary> |
| 166 | + /// Represents a 96-bit timestamp in MessagePack. |
| 167 | + /// </summary> |
71 | 168 | Timestamp96 = 0xc7 |
72 | 169 | } |
73 | 170 | } |
0 commit comments