code: public void writeMediumShortArray( short[] values ) {
          int byteSize = values.length * 2 + 2;
          this.addUnsignedShort( values.length );
          doWriteShortArray( values, byteSize );
      }
docs: Write medium short array.
  
  @param values the values