openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/msg.c
void MsgSetMSGoffs(smsg_t* const pMsg, uint32_t offs)
    {
        ISOBJ_TYPE_assert(pMsg, msg);
        pMsg->offMSG = offs;
        if (offs > (uint32_t)pMsg->iLenRawMsg)
        {
            assert((int)offs - 1 == pMsg->iLenRawMsg);
            pMsg->iLenMSG = 0;
        }
        else
        {
            pMsg->iLenMSG = pMsg->iLenRawMsg - offs;
        }
    }
/* set the offset of the MSG part into the raw msg buffer
     * Note that the offset may be higher than the length of the raw message
     * (exactly by one). This can happen if we have a message that does not
     * contain any MSG part.
     */
set the offset of the MSG part into the raw msg buffer
Note that the offset may be higher than the length of the raw message
(exactly by one). This can happen if we have a message that does not
contain any MSG part.
set the offset of the MSG part into the raw msg buffer Note that the offset may be higher than the length of the raw message ( exactly by one ) . This can happen if we have a message that does not contain any MSG part .
void MsgSetMSGoffs(smsg_t* const pMsg, uint32_t offs)
    {
        ISOBJ_TYPE_assert(pMsg, msg);
        pMsg->offMSG = offs;
        if (offs > (uint32_t)pMsg->iLenRawMsg)
        {
            assert((int)offs - 1 == pMsg->iLenRawMsg);
            pMsg->iLenMSG = 0;
        }
        else
        {
            pMsg->iLenMSG = pMsg->iLenRawMsg - offs;
        }
    }
void MsgSetMSGoffs ( smsg_t * const pMsg , uint32_t offs ) { ISOBJ_TYPE_assert ( pMsg , msg ) ; pMsg -> offMSG = offs ; if ( offs > ( uint32_t ) pMsg -> iLenRawMsg ) { assert ( ( int ) offs - 1 == pMsg -> iLenRawMsg ) ; pMsg -> iLenMSG = 0 ; } else { pMsg -> iLenMSG = pMsg -> iLenRawMsg - offs ; } }
set the offset of the MSG part into the raw msg buffer
 Note that the offset may be higher than the length of the raw message
 (exactly by one).
set the offset of the MSG part into the raw msg buffer Note that the offset may be higher than the length of the raw message ( exactly by one ) .