Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: Record füllen aus Byte Array
16. Okt 2010, 04: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."
|