I have a TMemoryStream with data of a set size
TBytes is a dynamic array of bytes
now a Dynamic array has a value of a integer of its size stored at the start of the array
that is set with SetLength.
If I have
Var
Data: ^TBytes;
.................
TMemoryStream.Memory
If my TMemoryStream Size was incremented 4 bytes and my data was moved away from TMemoryStream.Memory by 4 bytes
Set Data position to TMemoryStream.Memory + 4 to then SetLength to the size
Then can I do TZipFile.Add(Data^, FileName, zcStored); to store my data