Skip to content

Commit 1f11a56

Browse files
authored
Update nanoCLR_DataType.cs (#10)
1 parent 6098608 commit 1f11a56

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

source/MetadataProcessor.Core/Utility/nanoCLR_DataType.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) 2019 The nanoFramework project contributors
33
// Original work from Oleg Rakhmatulin.
44
// See LICENSE file in the project root for full license information.
@@ -31,6 +31,16 @@ internal enum nanoCLR_DataType : byte
3131
DATATYPE_TIMESPAN, // 8 bytes // Shortcut for System.TimeSpan
3232
DATATYPE_STRING,
3333

34+
// This is the last type that doesn't need to be relocated
35+
DATATYPE_LAST_NONPOINTER = DATATYPE_TIMESPAN,
36+
// All the above types don't need fix-up on assignment
37+
DATATYPE_LAST_PRIMITIVE_TO_PRESERVE = DATATYPE_R8,
38+
// All the above types can be marshaled by assignment.
39+
DATATYPE_LAST_PRIMITIVE_TO_MARSHAL = DATATYPE_TIMESPAN,
40+
41+
// All the above types don't need fix-up on assignment.
42+
DATATYPE_LAST_PRIMITIVE = DATATYPE_STRING,
43+
3444
DATATYPE_OBJECT, // Shortcut for System.Object
3545
DATATYPE_CLASS, // CLASS <class Token>
3646
DATATYPE_VALUETYPE, // VALUETYPE <class Token>

0 commit comments

Comments
 (0)