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

◆ Parse()

static unsafe bool System.IPv4AddressHelper.Parse ( string name,
byte * numbers,
int start,
int end )
inlinestaticprivate

Definition at line 25 of file IPv4AddressHelper.cs.

26 {
27 fixed (char* name2 = name)
28 {
29 int end2 = end;
30 long num = ParseNonCanonical(name2, start, ref end2, notImplicitFile: true);
31 *numbers = (byte)(num >> 24);
32 numbers[1] = (byte)(num >> 16);
33 numbers[2] = (byte)(num >> 8);
34 numbers[3] = (byte)num;
35 }
36 return *numbers == 127;
37 }
static unsafe long ParseNonCanonical(char *name, int start, ref int end, bool notImplicitFile)

References System.IPv4AddressHelper.ParseNonCanonical(), and System.start.

Referenced by System.IPv4AddressHelper.ParseCanonicalName().