<decoder>
  <read var="v0" type="uint" bits="32" endian="big"/>
  <loop var="v0">
    <read var="v1" type="uint" bits="16" endian="little"/>
    <sample/>
  </loop>
</decoder>

0 0 0 1
1 0   2 0   3 0   4 0   5 0

2
1 1
2 2
3 3
4 4
5 5

0 0 1 0
0 1 0 2 0 3 0 4 0 5 0
# note one byte of trash at the end

2
256 256
257 512
258 768
259 1024
260 1280
