CE16(), CE32()

CE16() konvertiert einen 16 Bit Integerwert, CE32() einen 32 Bit Integerwert von LittleEndian nach BigEndian und umgedreht. Die Byte-Anordnung des Wertes wird umgedreht. Selbe Funktion wie bei der Objektmethode .Reverse der Datentypen Integer, Word und Long (siehe Variablen).

Syntax: word = CE16(a as word)
Syntax: long = CE32(a as long)

Beispiel:

  dim a as word
  dim b as long
  a=0x1122
  b=0x11223344
  a = CE16(a)    ' Ergebnis: 0x2211
  b = CE32(b)    ' Ergebnis: 0x44332211