B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object containing raw PDU data.
   * @param msg
   *        Message object to be populated with decoded header fields.
   *
   * @see WAP-230-WSP-20010705-a clause 8.2.4
   */
@param data
A wrapped object containing raw PDU data.
@param msg
Message object to be populated with decoded header fields.


@param data A wrapped object containing raw PDU data . @param msg Message object to be populated with decoded header fields .
function parsePushHeaders(data, msg) {
    if (!msg.headers) {
      msg.headers = {};
    }
    let headersLen = UintVar.decode(data);
    let headersEnd = data.offset + headersLen;
    let contentType = ContentTypeValue.decode(data);
    msg.headers["content-type"] = contentType;
    msg.headers = this.parseHeaders(data, headersEnd, msg.headers);
  }
function parsePushHeaders ( data , msg ) { if ( ! msg . headers ) { msg . headers = { } ; } let headersLen = UintVar . decode ( data ) ; let headersEnd = data . offset + headersLen ; let contentType = ContentTypeValue . decode ( data ) ; msg . headers [ "content-type" ] = contentType ; msg . headers = this . parseHeaders ( data , headersEnd , msg . headers ) ; }
@param data
        A wrapped object containing raw PDU data.
@param data A wrapped object containing raw PDU data .