public static GetHeaderLength ( BerTag tag, int length ) : int | ||
tag | BerTag | |
length | int | |
Результат | int |
public static int GetHeaderLength(BerTag tag, int length)
{
int result = GetTagLength(tag);
if(length <= 0x7F || length == BerDefinitions.IndefiniteLength)
return result + 1;
return result + 1 + GetIntegerLength(length);
}