PKI-Lite - v1.0.5
    Preparing search index...

    Hierarchy

    • LocalBaseBlock
      • ValueBlock

    Implements

    Index

    Constructors

    • Creates and initializes an object instance of that class

      Parameters

      • Optionalparam0: LocalBaseBlockParams

        Initialization parameters

      Returns ValueBlock

    Properties

    blockLength: number
    error: string
    valueBeforeDecodeView: Uint8Array

    3.0.0

    warnings: string[]
    NAME: string

    Name of the block

    Accessors

    • get valueBeforeDecode(): ArrayBuffer

      Returns ArrayBuffer

      since version 3.0.0

    • set valueBeforeDecode(value: ArrayBuffer): void

      Parameters

      • value: ArrayBuffer

      Returns void

      since version 3.0.0

    Methods

    • Base function for converting block from BER encoded array of bytes

      Parameters

      • _inputBuffer: ArrayBuffer | Uint8Array<ArrayBufferLike>

        ASN.1 BER encoded array

      • _inputOffset: number

        Offset in ASN.1 BER encoded array where decoding should be started

      • _inputLength: number

        Maximum length of array of bytes which can be using in this function

      Returns number

      Offset after least decoded byte

    • Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)

      Parameters

      • Optional_sizeOnly: boolean

        Flag that we need only a size of encoding, not a real array of bytes

      • Optional_writer: ViewWriter

      Returns ArrayBuffer

      ASN.1 BER encoded array

    • Returns a JSON representation of an object

      Returns LocalBaseBlockJson

      JSON object

    • Aux function, need to get a block name. Need to have it here for inheritance

      Returns string

      Returns name of the block