networkToHost32 static method

int networkToHost32(
  1. int value
)

Convert network to host byte order (if needed)

  • value: The 32-bit value to convert Returns the value in host byte order

Implementation

static int networkToHost32(int value) {
  return Endian.host == Endian.little ? swap32(value) : value;
}