gzip_decoder.py
def decompress_raw_data_by_zcat(raw_data_fd, add_bracket=True):
    """
    Experiment: Decompresses raw data from file like object and return
    a byte array
    """
    writer = io.BytesIO()
    if add_bracket:
        writer.write(b'[')
    p = subprocess.Popen(["zcat"],
                         stdin=subprocess.PIPE,
                         stdout=subprocess.PIPE)
    writer.write(p.communicate(input=raw_data_fd.read())[0])
    if add_bracket:
        writer.write(b']')
    return writer.getvalue()

    Experiment: Decompresses raw data from file like object and return
    a byte array
    
Decompresses raw data from file like object and return
a byte array
Decompresses raw data from file like object and return a byte array
def decompress_raw_data_by_zcat(raw_data_fd, add_bracket=True):
    writer = io.BytesIO()
    if add_bracket:
        writer.write(b'[')
    p = subprocess.Popen(["zcat"],
                         stdin=subprocess.PIPE,
                         stdout=subprocess.PIPE)
    writer.write(p.communicate(input=raw_data_fd.read())[0])
    if add_bracket:
        writer.write(b']')
    return writer.getvalue()
def decompress_raw_data_by_zcat ( raw_data_fd , add_bracket = True ) : writer = io . BytesIO ( ) if add_bracket : writer . write ( b'[' ) p = subprocess . Popen ( [ "zcat" ] , stdin = subprocess . PIPE , stdout = subprocess . PIPE ) writer . write ( p . communicate ( input = raw_data_fd . read ( ) ) [ 0 ] ) if add_bracket : writer . write ( b']' ) return writer . getvalue ( )
Experiment: Decompresses raw data from file like object and return
a byte array
Experiment : Decompresses raw data from file like object and return a byte array
"""
    Experiment: Decompresses raw data from file like object and return
    a byte array
    """
raw_data_fd
add_bracket