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

◆ ByteArrayHasPrefix()

static bool System.Net.WebClient.ByteArrayHasPrefix ( byte[] prefix,
byte[] byteArray )
inlinestaticprivate

Definition at line 1274 of file WebClient.cs.

1275 {
1276 if (prefix == null || byteArray == null || prefix.Length > byteArray.Length)
1277 {
1278 return false;
1279 }
1280 for (int i = 0; i < prefix.Length; i++)
1281 {
1282 if (prefix[i] != byteArray[i])
1283 {
1284 return false;
1285 }
1286 }
1287 return true;
1288 }

References System.prefix.

Referenced by System.Net.WebClient.GetStringUsingEncoding().