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
 
#5

AW: Record füllen aus Byte Array

  Alt 16. Okt 2010, 03:05
Das mit dem Cast meint er so:

Delphi-Quellcode:
type
  TMyTyp = packed record
    ...
  end;

  PMyTyp = ^TMyTyp;


// ...
var mt: TMyTyp;
begin
  mt := PMyTyp(@Array[0])^;
end;
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