code: static void writeTransitions(
          ZonalTransition[] transitions,
          int size,
          DataOutput out
      ) throws IOException {
  
          int n = Math.min(size, transitions.length);
          out.writeInt(n);
  
          if (n > 0) {
              int stdOffset = transitions[0].getPreviousOffset();
              writeOffset(out, stdOffset);
  
              for (int i = 0; i < n; i++) {
                  stdOffset = writeTransition(transitions[i], stdOffset, out);
              }
          }
  
      }
docs: called by ArrayTransitionModel