Skip to content
asn1jsasn1jsasn1jsv4.1.0

UniversalString

  • LocalUniversalStringValueBlock

new UniversalString(__namedParameters?): UniversalString

LocalSimpleStringBlockParams = {}

UniversalString

LocalUniversalStringValueBlock.constructor

blockLength: number

LocalUniversalStringValueBlock.blockLength


error: string

LocalUniversalStringValueBlock.error


idBlock: LocalIdentificationBlock

LocalUniversalStringValueBlock.idBlock


lenBlock: LocalLengthBlock

LocalUniversalStringValueBlock.lenBlock


name: string

LocalUniversalStringValueBlock.name


optional: boolean

LocalUniversalStringValueBlock.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

LocalUniversalStringValueBlock.primitiveSchema


valueBeforeDecodeView: Uint8Array

3.0.0

LocalUniversalStringValueBlock.valueBeforeDecodeView


valueBlock: LocalSimpleStringValueBlock

LocalUniversalStringValueBlock.valueBlock


warnings: string[]

LocalUniversalStringValueBlock.warnings


static NAME: string = "UniversalString"

LocalUniversalStringValueBlock.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

LocalUniversalStringValueBlock.valueBeforeDecode

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

ArrayBuffer | Uint8Array<ArrayBufferLike>

number

number

FromBerContext

number

LocalUniversalStringValueBlock.fromBER


fromBuffer(inputBuffer): void

ArrayBuffer | Uint8Array<ArrayBufferLike>

void

LocalUniversalStringValueBlock.fromBuffer


fromString(inputString): void

string

void

LocalUniversalStringValueBlock.fromString


getValue(): string

String value

string

3.0.0

LocalUniversalStringValueBlock.getValue


isEqual(other): other is UniversalString

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is UniversalString

LocalUniversalStringValueBlock.isEqual


setValue(value): void

String value

string

String value

void

3.0.0

LocalUniversalStringValueBlock.setValue


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

LocalUniversalStringValueBlock.toBER


toJSON(): BaseBlockJson<LocalStringValueBlockJson>

Returns a JSON representation of an object

BaseBlockJson<LocalStringValueBlockJson>

JSON object

LocalUniversalStringValueBlock.toJSON


toString(encoding?): string

Returns a string representation of an object.

StringEncoding = "ascii"

string

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

LocalUniversalStringValueBlock.blockName