Class: ValueBlock
Hierarchy
-
LocalBaseBlock
↳
ValueBlock
Implements
Constructors
constructor
• new ValueBlock(param0?
): ValueBlock
Creates and initializes an object instance of that class
Parameters
Name | Type | Description |
---|---|---|
param0 | LocalBaseBlockParams | Initialization parameters |
Returns
Inherited from
internals.LocalBaseBlock.constructor
Properties
blockLength
• blockLength: number
Implementation of
IValueBlock.blockLength
Inherited from
internals.LocalBaseBlock.blockLength
error
• error: string
Implementation of
IValueBlock.error
Inherited from
internals.LocalBaseBlock.error
valueBeforeDecodeView
• valueBeforeDecodeView: Uint8Array
Since
3.0.0
Inherited from
internals.LocalBaseBlock.valueBeforeDecodeView
warnings
• warnings: string
[]
Implementation of
IValueBlock.warnings
Inherited from
internals.LocalBaseBlock.warnings
NAME
▪ Static
NAME: string
= "valueBlock"
Overrides
internals.LocalBaseBlock.NAME
Accessors
valueBeforeDecode
• get
valueBeforeDecode(): ArrayBuffer
Returns
ArrayBuffer
Deprecated
since version 3.0.0
Inherited from
internals.LocalBaseBlock.valueBeforeDecode
• set
valueBeforeDecode(value
): void
Parameters
Name | Type |
---|---|
value | ArrayBuffer |
Returns
void
Deprecated
since version 3.0.0
Inherited from
internals.LocalBaseBlock.valueBeforeDecode
Methods
fromBER
▸ fromBER(inputBuffer
, inputOffset
, inputLength
): number
Base function for converting block from BER encoded array of bytes
Parameters
Name | Type | Description |
---|---|---|
inputBuffer | Uint8Array | ArrayBuffer | 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
Implementation of
toBER
▸ toBER(sizeOnly?
, writer?
): ArrayBuffer
Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
Parameters
Name | Type | Description |
---|---|---|
sizeOnly? | boolean | Flag that we need only a size of encoding, not a real array of bytes |
writer? | ViewWriter | - |
Returns
ArrayBuffer
ASN.1 BER encoded array
Implementation of
toJSON
▸ toJSON(): LocalBaseBlockJson
Returns a JSON representation of an object
Returns
LocalBaseBlockJson
JSON object
Inherited from
internals.LocalBaseBlock.toJSON
blockName
▸ blockName(): string
Aux function, need to get a block name. Need to have it here for inheritance
Returns
string
Returns name of the block
Inherited from
internals.LocalBaseBlock.blockName