search for: zlibdecompress

Displaying 1 result from an estimated 1 matches for "zlibdecompress".

2005 Jan 05
0
zlib
...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 bytes result = struct.unpack("3d", zlib.decompress(data)) #decompress data and convert bytes to 3 doubles I also tried: data = readB...