public Variant(ExtensionObject value) { this.Value = value; this.Type = VariantType.ExtensionObject; this.ArrayDimensions = null; }
public virtual void Decode(IDecoder decoder) { decoder.PushNamespace("http://opcfoundation.org/UA/2008/02/Types.xsd"); Timestamp = decoder.ReadDateTime("Timestamp"); RequestHandle = decoder.ReadUInt32("RequestHandle"); ServiceResult = decoder.ReadStatusCode("ServiceResult"); ServiceDiagnostics = decoder.ReadDiagnosticInfo("ServiceDiagnostics"); StringTable = decoder.ReadStringArray("StringTable"); AdditionalHeader = decoder.ReadExtensionObject("AdditionalHeader"); decoder.PopNamespace(); }
public Variant(ExtensionObject[] value) { this.Value = value; this.Type = VariantType.ExtensionObject; this.ArrayDimensions = new int[value.Rank]; for (int i = 0; i < value.Rank; i++) { this.ArrayDimensions[i] = value.GetLength(i); } }
public virtual void Decode(IDecoder decoder) { decoder.PushNamespace("http://opcfoundation.org/UA/2008/02/Types.xsd"); AuthenticationToken = decoder.ReadNodeId("AuthenticationToken"); Timestamp = decoder.ReadDateTime("Timestamp"); RequestHandle = decoder.ReadUInt32("RequestHandle"); ReturnDiagnostics = decoder.ReadUInt32("ReturnDiagnostics"); AuditEntryId = decoder.ReadString("AuditEntryId"); TimeoutHint = decoder.ReadUInt32("TimeoutHint"); AdditionalHeader = decoder.ReadExtensionObject("AdditionalHeader"); decoder.PopNamespace(); }