pkt-line encoder and decoder as min-stream