You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException("Invalid length of values array");
96
-
}
93
+
if(addresses.Count()>(uint)values.Length)thrownewArgumentException($"Length of {nameof(values)} must be at least {nameof(addresses)} count.",nameof(values));
thrownewInvalidOperationException("The API contract doesn't define what to do for unaligned reads and writes!");
117
-
118
-
if(values.LongLength*2!=end-start)
119
-
{
120
-
// a longer array could be valid, but nothing needs that so don't support it for now
121
-
thrownewInvalidOperationException("Invalid length of values array");
122
-
}
109
+
if(addresses.Count()>(uint)values.Length*sizeof(ushort))thrownewArgumentException($"Length of {nameof(values)} must be at least {nameof(addresses)} count.",nameof(values));
thrownewInvalidOperationException("The API contract doesn't define what to do for unaligned reads and writes!");
141
-
142
-
if(values.LongLength*4!=end-start)
143
-
{
144
-
// a longer array could be valid, but nothing needs that so don't support it for now
145
-
thrownewInvalidOperationException("Invalid length of values array");
146
-
}
124
+
if(addresses.Count()>(uint)values.Length*sizeof(uint))thrownewArgumentException($"Length of {nameof(values)} must be at least {nameof(addresses)} count.",nameof(values));
0 commit comments