A struct in Root.Township, Alta.Networking.
A 128-bit ID stored as 16 bytes, written and read as a 32 character hex string.
Fields
| Member | What it is |
|---|
byte i0 | Byte 0, the first two hex characters. |
byte i1 | Byte 1 of the hash. |
byte i10 | Byte 10 of the hash. |
byte i11 | Byte 11 of the hash. |
byte i12 | Byte 12 of the hash. |
byte i13 | Byte 13 of the hash. |
byte i14 | Byte 14 of the hash. |
byte i15 | Byte 15, the last two hex characters. |
byte i2 | Byte 2 of the hash. |
byte i3 | Byte 3 of the hash. |
byte i4 | Byte 4 of the hash. |
byte i5 | Byte 5 of the hash. |
byte i6 | Byte 6 of the hash. |
byte i7 | Byte 7 of the hash. |
byte i8 | Byte 8 of the hash. |
byte i9 | Byte 9 of the hash. |
Methods
| Member | What it is |
|---|
bool IsValid() | True if any byte is non-zero. |
static NetworkHash128 Parse(string text) | Reads a hex string, left padding short strings with zeros. Bad characters read as 0. |
void Reset() | Sets every byte to zero. |
override string ToString() | The 32 character lowercase hex form. |
1 private and internal method
| Member | What it is |
|---|
private static int HexToNumber(char c) | Turns one hex digit into its number; anything else gives 0. Used by Parse. |