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

◆ Compare()

static bool System.Xml.EncodingStreamWrapper.Compare ( byte[] key,
byte[] buffer,
int offset )
inlinestaticprivate

Definition at line 501 of file EncodingStreamWrapper.cs.

502 {
503 for (int i = 0; i < key.Length; i++)
504 {
505 if (key[i] != buffer[offset + i])
506 {
507 return false;
508 }
509 }
510 return true;
511 }

References System.buffer, System.key, and System.offset.

Referenced by System.Xml.EncodingStreamWrapper.CheckUTF8DeclarationEncoding().