Why not use `startingIndex++` to match the pack function?  That seems to be how the other Packable types are written, e.g. Cartesian3.