Skip to main content

Class: VisibleString

Hierarchy

  • LocalSimpleStringBlock

    VisibleString

    ↳↳ UTCTime

Constructors

constructor

new VisibleString(parameters?): VisibleString

Parameters

NameType
parametersLocalSimpleStringBlockParams

Returns

VisibleString

Overrides

LocalSimpleStringBlock.constructor

Properties

blockLength

blockLength: number

Inherited from

LocalSimpleStringBlock.blockLength


error

error: string

Inherited from

LocalSimpleStringBlock.error


idBlock

idBlock: LocalIdentificationBlock

Inherited from

LocalSimpleStringBlock.idBlock


lenBlock

lenBlock: LocalLengthBlock

Inherited from

LocalSimpleStringBlock.lenBlock


name

name: string

Inherited from

LocalSimpleStringBlock.name


optional

optional: boolean

Inherited from

LocalSimpleStringBlock.optional


primitiveSchema

Optional primitiveSchema: BaseBlock<ValueBlock, LocalBaseBlockJson>

Inherited from

LocalSimpleStringBlock.primitiveSchema


valueBeforeDecodeView

valueBeforeDecodeView: Uint8Array

Since

3.0.0

Inherited from

LocalSimpleStringBlock.valueBeforeDecodeView


valueBlock

valueBlock: LocalSimpleStringValueBlock

Inherited from

LocalSimpleStringBlock.valueBlock


warnings

warnings: string[]

Inherited from

LocalSimpleStringBlock.warnings


NAME

Static NAME: string = "VisibleString"

Overrides

LocalSimpleStringBlock.NAME

Accessors

valueBeforeDecode

get valueBeforeDecode(): ArrayBuffer

Returns

ArrayBuffer

Deprecated

since version 3.0.0

Inherited from

LocalSimpleStringBlock.valueBeforeDecode

set valueBeforeDecode(value): void

Parameters

NameType
valueArrayBuffer

Returns

void

Deprecated

since version 3.0.0

Inherited from

LocalSimpleStringBlock.valueBeforeDecode

Methods

fromBER

fromBER(inputBuffer, inputOffset, inputLength): number

Parameters

NameType
inputBufferUint8Array | ArrayBuffer
inputOffsetnumber
inputLengthnumber

Returns

number

Inherited from

LocalSimpleStringBlock.fromBER


fromBuffer

fromBuffer(inputBuffer): void

Parameters

NameType
inputBufferUint8Array | ArrayBuffer

Returns

void

Inherited from

LocalSimpleStringBlock.fromBuffer


fromString

fromString(inputString): void

Parameters

NameType
inputStringstring

Returns

void

Inherited from

LocalSimpleStringBlock.fromString


getValue

getValue(): string

String value

Returns

string

Since

3.0.0

Inherited from

LocalSimpleStringBlock.getValue


isEqual

isEqual(other): other is VisibleString

Determines whether two object instances are equal

Parameters

NameTypeDescription
otherunknownObject to compare with the current object

Returns

other is VisibleString

Inherited from

LocalSimpleStringBlock.isEqual


onAsciiEncoding

onAsciiEncoding(): string

Returns

string

Inherited from

LocalSimpleStringBlock.onAsciiEncoding


setValue

setValue(value): void

String value

Parameters

NameTypeDescription
valuestringString value

Returns

void

Since

3.0.0

Inherited from

LocalSimpleStringBlock.setValue


toBER

toBER(sizeOnly?, writer?): ArrayBuffer

Parameters

NameType
sizeOnly?boolean
writer?ViewWriter

Returns

ArrayBuffer

Inherited from

LocalSimpleStringBlock.toBER


toJSON

toJSON(): BaseBlockJson<LocalStringValueBlockJson>

Returns

BaseBlockJson<LocalStringValueBlockJson>

Inherited from

LocalSimpleStringBlock.toJSON


toString

toString(encoding?): string

Parameters

NameTypeDefault value
encodingStringEncoding"ascii"

Returns

string

Inherited from

LocalSimpleStringBlock.toString


blockName

blockName(): string

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

Returns

string

Returns name of the block

Inherited from

LocalSimpleStringBlock.blockName