DataStream.WriteRange requirements. #254
-
Trying to use the following...
But I'm getting 'CS8377 Type T must be non-nullable.' Is there something unusual about this method or is there a secret package that needs to be referenced to make T work here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
T need to be unmanaged type or struct, not class. |
Beta Was this translation helpful? Give feedback.
-
Make where T : unmanaged |
Beta Was this translation helpful? Give feedback.
-
Unmanaged makes sure your struct type is fully blittable and interop capable |
Beta Was this translation helpful? Give feedback.
Make where T : unmanaged