octetsToInteger static method

int octetsToInteger(
  1. List<int> octets
)

Implementation

static int octetsToInteger(List<int> octets) {
  int address = 0;
  address += (octets[0] << 24);
  address += (octets[1] << 16);
  address += (octets[2] << 8);
  address += (octets[3]);
  return address;
}