BEtoN
function BEtoN(a: UInt32): UInt32; {$IFDEF HAS_INLINE}inline;{$ENDIF} overload;
Under FPC these names come from the System unit as endian-correct intrinsics (BEtoN/NtoBE are the identity on big-endian targets). The local versions below are LITTLE-ENDIAN-HOST implementations - every Delphi target is little endian - and must not shadow the FPC intrinsics on big-endian targets.
function BEtoN(a: UInt64): UInt64; {$IFDEF HAS_INLINE}inline;{$ENDIF} overload;