B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   *
   * @return Decoded content type string.
   */
@param data
A wrapped object containing raw PDU data.

@return Decoded content type string.
@param data A wrapped object containing raw PDU data . @return Decoded content type string .
function decode(data) {
    let numOrStr = ConstrainedEncoding.decode(data);
    if (typeof numOrStr == "string") {
      return numOrStr.toLowerCase();
    }
    let number = numOrStr;
    let entry = WSP_WELL_KNOWN_CONTENT_TYPES[number];
    if (!entry) {
      throw new NotWellKnownEncodingError(
        "Constrained-media: not well known media " + number);
    }
    return entry.type;
  }
function decode ( data ) { let numOrStr = ConstrainedEncoding . decode ( data ) ; if ( typeof numOrStr == "string" ) { return numOrStr . toLowerCase ( ) ; } let number = numOrStr ; let entry = WSP_WELL_KNOWN_CONTENT_TYPES [ number ] ; if ( ! entry ) { throw new NotWellKnownEncodingError ( "Constrained-media: not well known media " + number ) ; } return entry . type ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .