Unpacked to Packed gr_unpacked_to_packed_xx from gnuradio import gr gr.unpacked_to_packed_$(type.fcn)($bits_per_chunk, $endianness) Type type enum Bits per Chunk bits_per_chunk 2 int Endianness endianness int Num Ports num_ports 1 int $num_ports > 0 in $type $num_ports out $type $num_ports