Skip to content
asn1jsasn1jsasn1jsv4.1.0

Utf8String

  • LocalUtf8StringValueBlock

new Utf8String(parameters?): Utf8String

Utf8StringParams = {}

Utf8String

LocalUtf8StringValueBlock.constructor

blockLength: number

LocalUtf8StringValueBlock.blockLength


error: string

LocalUtf8StringValueBlock.error


idBlock: LocalIdentificationBlock

LocalUtf8StringValueBlock.idBlock


lenBlock: LocalLengthBlock

LocalUtf8StringValueBlock.lenBlock


name: string

LocalUtf8StringValueBlock.name


optional: boolean

LocalUtf8StringValueBlock.optional


optional primitiveSchema?: BaseBlock<ValueBlock, LocalBaseBlockJson>

LocalUtf8StringValueBlock.primitiveSchema


valueBeforeDecodeView: Uint8Array

3.0.0

LocalUtf8StringValueBlock.valueBeforeDecodeView


valueBlock: LocalSimpleStringValueBlock

LocalUtf8StringValueBlock.valueBlock


warnings: string[]

LocalUtf8StringValueBlock.warnings


static NAME: string = "UTF8String"

LocalUtf8StringValueBlock.NAME

get valueBeforeDecode(): ArrayBuffer

ArrayBuffer

set valueBeforeDecode(value): void

ArrayBuffer

void

LocalUtf8StringValueBlock.valueBeforeDecode

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

ArrayBuffer | Uint8Array<ArrayBufferLike>

number

number

FromBerContext

number

LocalUtf8StringValueBlock.fromBER


fromBuffer(inputBuffer): void

ArrayBuffer | Uint8Array<ArrayBufferLike>

void

LocalUtf8StringValueBlock.fromBuffer


fromString(inputString): void

string

void

LocalUtf8StringValueBlock.fromString


getValue(): string

String value

string

3.0.0

LocalUtf8StringValueBlock.getValue


isEqual(other): other is Utf8String

Determines whether two object instances are equal

unknown

Object to compare with the current object

other is Utf8String

LocalUtf8StringValueBlock.isEqual


setValue(value): void

String value

string

String value

void

3.0.0

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

LocalUtf8StringValueBlock.toBER


toJSON(): BaseBlockJson<LocalStringValueBlockJson>

Returns a JSON representation of an object

BaseBlockJson<LocalStringValueBlockJson>

JSON object

LocalUtf8StringValueBlock.toJSON


toString(encoding?): string

Returns a string representation of an object.

StringEncoding = "ascii"

string

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

LocalUtf8StringValueBlock.blockName