class TWord extends Object abstract;

static final function int GetValue(byte A, byte B) {
  return B << 8 | A;
}

static final function SetValue(int Value, out byte A, out byte B) {
  A = Value & 0xFF;
  B = Value >> 8;
}