Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#10

AW: BigEndian-Verwirrungen beim Unicode?

  Alt 25. Sep 2010, 16:41
Also.. Nehmen wir mal dieses Zitat von Wikipedia:

Zitat:
Heutige PC-Systeme (x86-kompatible) verwenden Little-Endian.
dazu nehmen wir folgendes Programm:

Delphi-Quellcode:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var Int: Word;
    B: PByte;
begin
  Int := $ABCD;

  writeln('Wert: $ABCD');
  write('Speicher: ');

  B := @Int;
  write('$',IntToHex(B^,2),', ');

  inc(B);
  write('$',IntToHex(B^,2));

  readln;
end.
Und jetzt wissen wir was LittleEndian bedeutet.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat