Ross,
array of bytes isnt the same as a pointer (nor is the same as a static
array with a fixed length). Dynamic arrays are a managed data structure in
Delphi that contain information such as length and a reference count (so
Delphi can manage memory and free them if no longer used).
Just noticed this one here:
>>There is a IOHandler.Write function that supports TStream but the memory
stream is being appended to in a separate thread so I cant go changing the
Position I want to access the data from.
You are aware that tmemorystream isnt threadsafe, right? You will
I'm writing data to an Indy IOHandler by moving the data from a
TMemoryStream.Memory to a TIDBytes (array of byte) before writing it as I
cannot find how to do it otherwise.
This works...
AudioMS: TMemoryStream;
Buffer: TIdBytes; // array of byte
MemPos: PByte;
MemPos :=