NodeOPCUA API Documentation
    Preparing search index...

    Class EncodedDataValue

    a DataValue still in its binary encoding, as another thread or process sent it: encoding it again writes those bytes as they are. A server that only passes a value on (a front thread answering a Read with what its engine read) then never decodes it, which for a large array saves decoding it, copying it to align its elements, and encoding it again.

    Its fields are decoded the first time one of them is read or set; from then on it is an ordinary DataValue, encoded from its fields. Built by encodedDataValue(), never with new.

    Hierarchy (View Summary)

    Index
    _bytes: Uint8Array<ArrayBufferLike> | null

    the bytes not decoded yet; null once the fields have been decoded

    _decoded: DataValue | null
    schema: IStructuredTypeSchema
    serverPicoseconds: number
    serverTimestamp: DateTime
    sourcePicoseconds: number
    sourceTimestamp: DateTime
    statusCode: StatusCode
    value: Variant
    • the fields, made the first time one is used: decoded from the bytes, or by a subclass from its own form

      Returns DataValue

    • a subclass that keeps the value in another form than bytes (its _bytes null) writes its encoding from there, as encodeDataValue() would from the fields, until they are made (_decodeFields)

      Parameters

      • _stream: OutputBinaryStream

      Returns void

    • 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

    • Returns DataValue

    • 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