NodeOPCUA API Documentation
    Preparing search index...

    Class EncodedVariant

    Hierarchy (View Summary)

    Index
    _bytes: Uint8Array<ArrayBufferLike> | null

    the encoding; null once a field was written, the Variant then encoding its fields

    _decoded: Variant | null

    the Variant the bytes decode to, once a field other than dataType and arrayType was read

    arrayType: VariantArrayType
    dataType: DataType
    dimensions: number[] | null
    schema: IStructuredTypeSchema
    value: any
    coerce: (variantLike: VariantOptions | Variant) => Variant
    computer_default_value: () => Variant
    maxArrayLength: number
    maxTypedArrayLength: number
    schema: IStructuredTypeSchema
    • get encoded(): Uint8Array<ArrayBufferLike> | null

      the encoding as it is, or null once the Variant was changed

      Returns Uint8Array<ArrayBufferLike> | null

    • Type Parameters

      • T

      Parameters

      • func: Func1<T>
      • data: T

      Returns void

    • Calculate the required size to store this object in a binary stream.

      Returns number

    • a copy that is still these bytes: the encoding is never changed in place, a write detaches it

      Returns Variant

    • Decode the object from the binary stream.

      Parameters

      Returns void

    • Parameters

      Returns void

    • Encode the object to the binary stream.

      Parameters

      • stream: OutputBinaryStream

      Returns void

    • Returns string

    • verify that all object attributes values are valid according to schema

      Returns boolean

    • Parameters

      • ...args: unknown[]

      Returns unknown

    • Returns string