integerToOctets static method
Implementation
static List<int> integerToOctets(int address) {
int fill = 0;
List<int> octets = List<int>.filled(4, fill, growable: false);
octets[0] = (address & (255 << 24)) >> 24;
octets[1] = (address & (255 << 16)) >> 16;
octets[2] = (address & (255 << 8)) >> 8;
octets[3] = address & (255);
return octets;
}