was entspricht dann PAnsiChar , wenn ich AnsiChar durch TBytes ersetze ?
Code beispiel
Delphi-Quellcode:
type
TReadBuffer = record
BufferBytes: array of Byte;
procedure clear;
end;
function BytestoString(BytesBuffer: TReadBuffer): AnsiString;
var
arraylength: integer;
s: AnsiString;
begin
arraylength := high(BytesBuffer.BufferBytes) + 1;
SetString(s, PAnsiChar(@BytesBuffer.BufferBytes[0]), arraylength);
Result := s;
end;