Function getTLVh

  • get ASN.1 object TLV hexadecimal string at specified string index

    Parameters

    • h: string

      string supposed to be a ASN.1 TLV hexadecimal at specified index

    • sidx: number

    Returns string

    ASN.1 TLV hexadecimal string

    Parma

    sidx - string index of ASN.1 TLV hexadecimal

    Example

    getTLVh("zzz0201fazzz", 3) -> "0201fa"
    getTLVh("zzz0202fa0czzz", 3) -> "0202fa0c"