B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded string.
   *
   * @throws CodeError if first octet read is not 0x34.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded string.

@throws CodeError if first octet read is not 0x34.
@param data A wrapped object containing raw PDU data . @return Decoded string . @throws CodeError if first octet read is not 0x34 .
function decode(data) {
    let value = Octet.decode(data);
    if (value != 34) {
      throw new CodeError("Quoted-string: not quote " + value);
    }
    return NullTerminatedTexts.decode(data);
  }
function decode ( data ) { let value = Octet . decode ( data ) ; if ( value != 34 ) { throw new CodeError ( "Quoted-string: not quote " + value ) ; } return NullTerminatedTexts . decode ( data ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .