Skip to content
asn1jsasn1jsasn1jsv4.1.0

DateTime

new DateTime(parameters?): DateTime

Utf8StringParams = {}

DateTime

Utf8String.constructor

blockLength: number

Utf8String.blockLength


error: string

Utf8String.error


idBlock: LocalIdentificationBlock

Utf8String.idBlock


lenBlock: LocalLengthBlock

Utf8String.lenBlock


name: string

Utf8String.name


optional: boolean

Utf8String.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

Utf8String.primitiveSchema


valueBeforeDecodeView: Uint8Array

3.0.0

Utf8String.valueBeforeDecodeView


valueBlock: LocalSimpleStringValueBlock

Utf8String.valueBlock


warnings: string[]

Utf8String.warnings


static NAME: string = "DateTime"

Utf8String.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

Utf8String.valueBeforeDecode

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

ArrayBuffer | Uint8Array<ArrayBufferLike>

number

number

FromBerContext

number

Utf8String.fromBER


fromBuffer(inputBuffer): void

ArrayBuffer | Uint8Array<ArrayBufferLike>

void

Utf8String.fromBuffer


fromString(inputString): void

string

void

Utf8String.fromString


getValue(): string

String value

string

3.0.0

Utf8String.getValue


isEqual(other): other is DateTime

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is DateTime

Utf8String.isEqual


setValue(value): void

String value

string

String value

void

3.0.0

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

Utf8String.toBER


toJSON(): BaseBlockJson<LocalStringValueBlockJson>

Returns a JSON representation of an object

BaseBlockJson<LocalStringValueBlockJson>

JSON object

Utf8String.toJSON


toString(encoding?): string

Returns a string representation of an object.

StringEncoding = "ascii"

string

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

Utf8String.blockName