Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals() [1/7]

static bool System.Reflection.Internal.ByteSequenceComparer.Equals ( byte[] left,
int leftStart,
byte[] right,
int rightStart,
int length )
inlinestaticpackage

Definition at line 34 of file ByteSequenceComparer.cs.

35 {
36 if (left == null || right == null)
37 {
38 return left == right;
39 }
40 if (left == right && leftStart == rightStart)
41 {
42 return true;
43 }
44 for (int i = 0; i < length; i++)
45 {
46 if (left[leftStart + i] != right[rightStart + i])
47 {
48 return false;
49 }
50 }
51 return true;
52 }

References System.length.