Split decode into max size and current size. Test: builds Change-Id: Ice18d7f0e9ae99b3c24fe10843da80abd0d912d7