def hxzip_decode(data_size, data):
import zlib<EOL>data_stream = zlib.decompress(data)<EOL>output = numpy.array(struct.unpack('<STR_LIT>'.format(len(data_stream)), data_stream), dtype=numpy.uint8)<EOL>assert len(output) == data_size<EOL>return output<EOL>
Decode HxZip data stream

    :param int data_size: the number of items when ``data`` is uncompressed
    :param str data: a raw stream of data to be unpacked
    :return numpy.array output: an array of ``numpy.uint8``