Cut input stream
Switch between uint32, uint40 ....