So I have been trying to convert some data from C to be compressed and sent to a library which is in golang where it will be decompressed. only issue is, they seem to be slightly different implementations from each other.
What i did was to use "zlib.h" library from C to compress the string "hello" which resulted in bytes of
[120 156 203 72 205 201 201 103 32 5]
while in golang for the same string "hello" results in an array of
[120 156 202 72 205 201 201 7 4 0 0 255 255 6 44 2 21]
My question is if there is a way to make these outputs similar , what is it? or at the very least can a compressed data in C be decompressed in zlib?
I've also looked at How can I use zlib in golang to cooperate with zlib in c? but i'm looking for something more specific like an example.