S
S
Sergey2016-09-12 12:51:01
C++ / C#
Sergey, 2016-09-12 12:51:01

Boost zlib and char*. How to unpack and pack a char array?

You need to use zlib from boost to pack and unpack the char* array. The input is char* and length. length is specified explicitly since the char array can be null bytes, and this is not the end. Waiting for suggestions). I've been toiling for the second day now - I can't figure out a normal solution, I don't want to shoot myself in the foot).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Martyanov, 2016-09-12
@vilgeforce

If you want a normal solution - use a simple zlib. Usage examples at www.zlib.net/zlib_how.html

M
maaGames, 2016-09-12
@maaGames

boost serialization or what does boost have to do with it? With serialization+zlib "everything is very simple".

M
Maxim Moseychuk, 2016-09-12
@fshp

www.boost.org/doc/libs/1_53_0/libs/iostreams/doc/c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question