Skip to content
asn1jsasn1jsasn1jsv4.1.0

Sequence

new Sequence(parameters?): Sequence

ConstructedParams = {}

Sequence

Constructed.constructor

blockLength: number

Constructed.blockLength


error: string

Constructed.error


idBlock: LocalIdentificationBlock

Constructed.idBlock


lenBlock: LocalLengthBlock

Constructed.lenBlock


name: string

Constructed.name


optional: boolean

Constructed.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

Constructed.primitiveSchema


valueBeforeDecodeView: Uint8Array

3.0.0

Constructed.valueBeforeDecodeView


valueBlock: LocalConstructedValueBlock

Constructed.valueBlock


warnings: string[]

Constructed.warnings


static NAME: string = "SEQUENCE"

Name of the block

Constructed.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

Constructed.valueBeforeDecode

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

Base function for converting block from BER encoded array of bytes

ArrayBuffer | Uint8Array<ArrayBufferLike>

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

Constructed.fromBER


isEqual(other): other is Sequence

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is Sequence

Constructed.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

Constructed.toBER


toJSON(): BaseBlockJson<LocalConstructedValueBlockJson>

Returns a JSON representation of an object

BaseBlockJson<LocalConstructedValueBlockJson>

JSON object

Constructed.toJSON


toString(encoding?): string

Returns a string representation of an object.

StringEncoding = "ascii"

string

Constructed.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

Constructed.blockName