swap16 function

int swap16(
  1. int v
)

Implementation

int swap16(int v) =>
  ((v & 0xFF) << 8) |
  ((v >> 8) & 0xFF);