A
Andi Hotz
Hi,
I have to write an application to compress data, which is a pointer to the
start of the data and the length of the data in bytes. When I want to
compress the data should decrease. So how do I allocate the needed space? I
had two ideas:
- Use of a vector of char
- Copy of the uncompressed file and use the space of the copy for the
copressed data.
Does anyone see another possibility? Which one is the best?
Andi
I have to write an application to compress data, which is a pointer to the
start of the data and the length of the data in bytes. When I want to
compress the data should decrease. So how do I allocate the needed space? I
had two ideas:
- Use of a vector of char
- Copy of the uncompressed file and use the space of the copy for the
copressed data.
Does anyone see another possibility? Which one is the best?
Andi