what i have works, but im looking if there is a faster way to copy a string into a pByteArray
from sysutils
PByteArray = ^TByteArray;
TByteArray = array[0..32767] of Byte;
assume a and s are setup correctly
a: pByteArray;
s: string;
is there a fast way to do this, ie something like copy
for i := 1 TO Length(s) - 1 do
a^[i] := Ord(s[i]);
delphi 7