Byte(type); switch(type) { case 0: Byte(); break; case 2: Byte(count); while(count--) { String(); String(); Byte(); Int(); } break; }