[io] add helpers to check source output sizes