ValueBlock
Extends
Section titled “Extends”LocalBaseBlock
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ValueBlock(
param0?):ValueBlock
Creates and initializes an object instance of that class
Parameters
Section titled “Parameters”param0?
Section titled “param0?”LocalBaseBlockParams = {}
Initialization parameters
Returns
Section titled “Returns”ValueBlock
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.constructor
Properties
Section titled “Properties”blockLength
Section titled “blockLength”blockLength:
number
Implementation of
Section titled “Implementation of”IValueBlock.blockLength
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.blockLength
error:
string
Implementation of
Section titled “Implementation of”IValueBlock.error
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.error
valueBeforeDecodeView
Section titled “valueBeforeDecodeView”valueBeforeDecodeView:
Uint8Array
3.0.0
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.valueBeforeDecodeView
warnings
Section titled “warnings”warnings:
string[]
Implementation of
Section titled “Implementation of”IValueBlock.warnings
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.warnings
staticNAME:string="valueBlock"
Name of the block
Overrides
Section titled “Overrides”internals.LocalBaseBlock.NAME
Accessors
Section titled “Accessors”valueBeforeDecode
Section titled “valueBeforeDecode”Get Signature
Section titled “Get Signature”get valueBeforeDecode():
ArrayBuffer
Returns
Section titled “Returns”ArrayBuffer
Set Signature
Section titled “Set Signature”set valueBeforeDecode(
value):void
Parameters
Section titled “Parameters”ArrayBuffer
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.valueBeforeDecode
Methods
Section titled “Methods”fromBER()
Section titled “fromBER()”fromBER(
_inputBuffer,_inputOffset,_inputLength,_context?):number
Base function for converting block from BER encoded array of bytes
Parameters
Section titled “Parameters”_inputBuffer
Section titled “_inputBuffer”ArrayBuffer | Uint8Array<ArrayBufferLike>
_inputOffset
Section titled “_inputOffset”number
_inputLength
Section titled “_inputLength”number
_context?
Section titled “_context?”unknown
Returns
Section titled “Returns”number
Offset after least decoded byte
Implementation of
Section titled “Implementation of”toBER()
Section titled “toBER()”toBER(
_sizeOnly?,_writer?):ArrayBuffer
Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
Parameters
Section titled “Parameters”_sizeOnly?
Section titled “_sizeOnly?”boolean
_writer?
Section titled “_writer?”Returns
Section titled “Returns”ArrayBuffer
ASN.1 BER encoded array
Implementation of
Section titled “Implementation of”toJSON()
Section titled “toJSON()”toJSON():
LocalBaseBlockJson
Returns a JSON representation of an object
Returns
Section titled “Returns”LocalBaseBlockJson
JSON object
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.toJSON
blockName()
Section titled “blockName()”
staticblockName():string
Aux function, need to get a block name. Need to have it here for inheritance
Returns
Section titled “Returns”string
Returns name of the block
Inherited from
Section titled “Inherited from”internals.LocalBaseBlock.blockName