B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @throws RangeError if no more data is available.
   */
@param data
A wrapped object containing raw PDU data.

@throws RangeError if no more data is available.
@param data A wrapped object containing raw PDU data . @throws RangeError if no more data is available .
function decode(data) {
    if (data.offset >= data.array.length) {
      throw new RangeError();
    }
    return data.array[data.offset++];
  }
function decode ( data ) { if ( data . offset >= data . array . length ) { throw new RangeError ( ) ; } return data . array [ data . offset ++ ] ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .