How do you use strings in TMemoryStreams?
The strings are not fixed lengths.
The first thing in my stream is an integer containing the number of different strings.
Each string is then stored in the following manner:
First the SizeOf(String) and then string itself using the
SizeOf(String) as the byte count.
Reading strings is done in the same manner.
There are to many problems to mention them all, but basically the same one never occurs twice in a row. They are all memory read errors.
Is there a better way or do I just have to get my code in order?
The strings are not fixed lengths.
The first thing in my stream is an integer containing the number of different strings.
Each string is then stored in the following manner:
First the SizeOf(String) and then string itself using the
SizeOf(String) as the byte count.
Reading strings is done in the same manner.
There are to many problems to mention them all, but basically the same one never occurs twice in a row. They are all memory read errors.
Is there a better way or do I just have to get my code in order?