Displaying 1 result from an estimated 1 matches for "compresslength".
Did you mean:
compress_length
2005 Jan 05
0
zlib
...tes that were compressed using zlib. The
bytes are stored within a binary file. I can seek to the location, read the
length of the compressed byte array, and read the bytes into R. What I need
to do then is decompress the byte array to an array of doubles.
The code looks something like this:
compresslength = readBin(infile, integer(), 1, 4)
data = readBin(infile, integer(), compresslength, 1)
#need something here like..... result = zlibDecompress(data)
I implemented it in Python using the zlib module and the decompress method.
The Python code is:
data = file.read(compresslength) #read x number of b...