[io] add helpers to pad source output