Converts a bytearray into an unsigned integer using the current Endianness
Parameters
- value (array< Byte >[]()[])
- ByteArray to convert, length must be > 4
Return Value
The converted value
Examples
Convert some bytes into an Integer using BigEndian
CopyC#
Endianness endian = Endianness.BigEndian; byte[] input = new byte[4] { 0xdd, 0x65, 0xee, 0x47 }; int i = endian.ConvertLong(input); Console.Out.WriteLine(i); // Writes: 3714444871