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/obj.c
static rsRetVal objDeserializeStr(cstr_t** ppCStr, int iLen, strm_t* pStrm)
{
    DEFiRet;
    int i;
    uchar c;
    cstr_t* pCStr = NULL;

    assert(ppCStr != NULL);
    assert(iLen >= 0);

    CHKiRet(cstrConstruct(&pCStr));

    NEXTC;
    for (i = 0; i < iLen; ++i)
    {
        CHKiRet(cstrAppendChar(pCStr, c));
        NEXTC;
    }
    cstrFinalize(pCStr);

    /* check terminator */
    if (c != ':')
        ABORT_FINALIZE(RS_RET_INVALID_DELIMITER);

    *ppCStr = pCStr;

finalize_it:
    if (iRet != RS_RET_OK && pCStr != NULL)
        cstrDestruct(&pCStr);

    RETiRet;
}
/* de-serialize a string, length must be provided but may be 0 */
de-serialize a string, length must be provided but may be 0
de - serialize a string length must be provided but may be 0
static rsRetVal objDeserializeStr(cstr_t** ppCStr, int iLen, strm_t* pStrm)
{
    DEFiRet;
    int i;
    uchar c;
    cstr_t* pCStr = NULL;
    assert(ppCStr != NULL);
    assert(iLen >= 0);
    CHKiRet(cstrConstruct(&pCStr));
    NEXTC;
    for (i = 0; i < iLen; ++i)
    {
        CHKiRet(cstrAppendChar(pCStr, c));
        NEXTC;
    }
    cstrFinalize(pCStr);
    if (c != ':')
        ABORT_FINALIZE(RS_RET_INVALID_DELIMITER);
    *ppCStr = pCStr;
finalize_it:
    if (iRet != RS_RET_OK && pCStr != NULL)
        cstrDestruct(&pCStr);
    RETiRet;
}
static rsRetVal objDeserializeStr ( cstr_t * * ppCStr , int iLen , strm_t * pStrm ) { DEFiRet ; int i ; uchar c ; cstr_t * pCStr = NULL ; assert ( ppCStr != NULL ) ; assert ( iLen >= 0 ) ; CHKiRet ( cstrConstruct ( & pCStr ) ) ; NEXTC ; for ( i = 0 ; i < iLen ; ++ i ) { CHKiRet ( cstrAppendChar ( pCStr , c ) ) ; NEXTC ; } cstrFinalize ( pCStr ) ; if ( c != ' ' ) ABORT_FINALIZE ( RS_RET_INVALID_DELIMITER ) ; * ppCStr = pCStr ; finalize_it : if ( iRet != RS_RET_OK && pCStr != NULL ) cstrDestruct ( & pCStr ) ; RETiRet ; }
de-serialize a string, length must be provided but may be 0
de - serialize a string length must be provided but may be 0
/* check terminator */