byte[] packetData = new byte[] { 0x00, 0x00, 0x01, 0x00 }; int integerValue = PacketReader.ReadInt32E(packetData, 0);
byte[] packetData = new byte[] { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01 }; int integerValue1 = PacketReader.ReadInt32E(packetData, 0); int integerValue2 = PacketReader.ReadInt32E(packetData, 4);In this example, the packetData contains two 32-bit integers: 256 and 1, in big-endian byte order. The ReadInt32E method is used to read these integers from the packet data, with the first integer starting at byte 0 and the second integer starting at byte 4.