In my Delphi VCL project I used the "Move" procedure to convert a byte array into a record struct. to load.
Source = array[0..2000] of byte;
Dest = recordstruct
move(Dest, Source, Count);
I have now recreated this function myself for webcore:
procedure byteMove(const Source; var Dest; Count: integer);
var
i : integer;
type
byteArray = array[0..2000] of byte;
begin
for i := 0 to Count-1 do
byteArray(Dest)[i] := byteArray(Source)[i];
end;
.
This procedure runs correctly under Delphi VCL under WebCore get an error.
ERROR
TypeError: Dest.get is not a function | $mod.$implcode/$impl.byteMove@http://localhost...
rByte = array[0..2000] of byte;
rData = recordstruct
byteMove(rByte[10],rData,400);
What possibilities are there in the WebCore to copy a memory area into another, the types of which are different?