code: public static final void shortToBytes( short s, byte[] data, int[] offset ) {
          /**
           * TODO: We use network-order within OceanStore, but temporarily
           * supporting intel-order to work with some JNI code until JNI code is
           * set to interoperate with network-order.
           */
          if (data != null) {
              data[offset[0] + 1] = (byte) s;
              data[offset[0]] = (byte) (s >> 8);
          }
  
          offset[0] += SIZE_SHORT;
      }
docs: Write the bytes representing <code>s</code> into the byte array
  <code>data</code>, starting at index <code>offset [0]</code>, and
  increment <code>offset [0]</code> by the number of bytes written; if
  <code>data == null</code>, increment <code>offset [0]</code> by the
  number of bytes that would have been written otherwise.
  
  @param s the <code>short</code> to encode
  @param data The byte array to store into, or <code>null</code>.
  @param offset A single element array whose first element is the index in
  data to begin writing at on function entry, and which on
  function exit has been incremented by the number of bytes
  written.