Skip to content
asn1jsasn1jsasn1jsv4.1.0

Integer

  • BaseBlock<LocalIntegerValueBlock, LocalIntegerValueBlockJson>

new Integer(parameters?): Integer

IntegerParams = {}

Integer

BaseBlock.constructor

blockLength: number

BaseBlock.blockLength


error: string

BaseBlock.error


idBlock: LocalIdentificationBlock

BaseBlock.idBlock


lenBlock: LocalLengthBlock

BaseBlock.lenBlock


name: string

BaseBlock.name


optional: boolean

BaseBlock.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

BaseBlock.primitiveSchema


valueBeforeDecodeView: Uint8Array

3.0.0

BaseBlock.valueBeforeDecodeView


valueBlock: LocalIntegerValueBlock

BaseBlock.valueBlock


warnings: string[]

BaseBlock.warnings


static NAME: string = "INTEGER"

Name of the block

BaseBlock.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

BaseBlock.valueBeforeDecode

convertFromDER(): Integer

Convert current Integer value from DER to BER format

Integer


convertToDER(): Integer

Integer


fromBER(inputBuffer, inputOffset, inputLength, context?): number

Base function for converting block from BER encoded array of bytes

Uint8Array

ASN.1 BER encoded array

number

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

number

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

FromBerContext

number

Offset after least decoded byte

BaseBlock.fromBER


isEqual(other): other is Integer

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is Integer

BaseBlock.isEqual


toBER(sizeOnly?, writer?): ArrayBuffer

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

boolean

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

ViewWriter

ArrayBuffer

ASN.1 BER encoded array

BaseBlock.toBER


toBigInt(): bigint

Converts Integer into BigInt

bigint

3.0.0


toJSON(): BaseBlockJson<LocalIntegerValueBlockJson>

Returns a JSON representation of an object

BaseBlockJson<LocalIntegerValueBlockJson>

JSON object

BaseBlock.toJSON


toString(encoding?): string

Returns a string representation of an object.

StringEncoding = "ascii"

string

BaseBlock.toString


static blockName(): string

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

string

Returns name of the block

BaseBlock.blockName


static fromBigInt(value): Integer

Creates Integer from BigInt value

string | number | bigint | boolean

BigInt value

Integer

ASN.1 Integer

3.0.0