B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * Internal octet decoding for specific value.
   *
   * @param data
   *        A wrapped object containing raw PDU data.
   * @param expected
   *        Expected octet value.
   *
   * @return Expected octet value.
   *
   * @throws CodeError if read octet is not equal to expected one.
   */
Internal octet decoding for specific value.
@param data
A wrapped object containing raw PDU data.
@param expected
Expected octet value.

@return Expected octet value.

@throws CodeError if read octet is not equal to expected one.
Internal octet decoding for specific value . @param data A wrapped object containing raw PDU data . @param expected Expected octet value . @return Expected octet value . @throws CodeError if read octet is not equal to expected one .
function decodeEqualTo(data, expected) {
    if (this.decode(data) != expected) {
      throw new CodeError("Octet - decodeEqualTo: doesn't match " + expected);
    }
    return expected;
  }
function decodeEqualTo ( data , expected ) { if ( this . decode ( data ) != expected ) { throw new CodeError ( "Octet - decodeEqualTo: doesn't match " + expected ) ; } return expected ; }
Internal octet decoding for specific value.
Internal octet decoding for specific value .