/// <summary>
/// Decodes the value of the current TLV as an RelativeOid.
/// Throws an exception in case of a format mismatch.
/// </summary>
/// <returns>An array of integers containing the subidentifiers of the RelativeOid value of the current TLV.</returns>
public int[] GetRelativeOid()
{
if (IsContainer)
{
ThrowError(207, "Invalid RelativeOid encoding");
}
Debug.Assert(Value != null || Length == 0);
Debug.Assert(Type == BerType.RelativeOid || BerType.IsApplicationDefined(Type));
var input = new BerMemoryInput(Value);
return(BerEncoding.DecodeRelativeOid(input, Length));
}