(encoder, block_bytes, compression_level)
Write block in "snappy" codec.
Write block in "snappy" codec.
Write block in snappy codec .
def snappy_write_block(encoder, block_bytes, compression_level):
    """Write block in "snappy" codec."""
    data = snappy.compress(block_bytes)
    encoder.write_long(len(data) + 4)  # for CRC
    encoder._fo.write(data)
    encoder.write_crc32(block_bytes)
def snappy_write_block ( encoder , block_bytes , compression_level ) : data = snappy . compress ( block_bytes ) encoder . write_long ( len ( data ) + 4 ) # for CRC encoder . _fo . write ( data ) encoder . write_crc32 ( block_bytes )