예제 #1
0
AsnLen BEncUniversalString(GenBuf *b, UniversalString *v)
{
    AsnLen l;

    l = BEncUniversalStringContent (b, v);
    l += BEncDefLen (b, l);
    l += BEncTag1 (b, UNIV, PRIM, UNIVERSALSTRING_TAG_CODE);
    return l;
} /* end of BEncUniversalString() */
예제 #2
0
파일: asn-bool.C 프로젝트: yafngzh/easyMq
AsnLen AsnBool::BEnc (BUF_TYPE b)
{
    AsnLen l;
    l = BEncContent (b);
    BEncDefLenTo127 (b, l);
    l++;
    l += BEncTag1 (b, UNIV, PRIM, BOOLEAN_TAG_CODE);
    return l;
}
예제 #3
0
AsnLen AsnNull::BEnc (AsnBuf &b) const
{
    AsnLen l;
    l = BEncContent (b);
    BEncDefLenTo127 (b, l);
    l++;
    l += BEncTag1 (b, UNIV, PRIM, NULLTYPE_TAG_CODE);
    return l;
}
예제 #4
0
AsnLen BEncBMPString(GenBuf *b, BMPString *v)
{
    AsnLen l;

    l = BEncBMPStringContent (b, v);
    l += BEncDefLen (b, l);
    l += BEncTag1 (b, UNIV, PRIM, BMPSTRING_TAG_CODE);
    return l;
} /* end of BEncBMPString() */
예제 #5
0
AsnLen BEncNumericString(GenBuf *b, NumericString *v)
{
    AsnLen l;

    l = BEncNumericStringContent (b, v);
    l += BEncDefLen (b, l);
    l += BEncTag1 (b, UNIV, PRIM, NUMERICSTRING_TAG_CODE);
    return l;
} /* end of BEncNumericString() */