C# 클래스 Opc.Ua.BinaryDecoder

Decodes objects from a UA Binary encoded stream.
상속: IDecoder, IDisposable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
BinaryDecoder ( Stream stream, ServiceMessageContext context ) : System

Creates a decoder that reads from a stream.

BinaryDecoder ( byte buffer, ServiceMessageContext context ) : System

Creates a decoder that reads from a memory buffer.

BinaryDecoder ( byte buffer, int start, int count, ServiceMessageContext context ) : System

Creates a decoder that reads from a memory buffer.

Close ( ) : void

Completes reading and closes the stream.

DecodeMessage ( Stream stream, System expectedType, ServiceMessageContext context ) : IEncodeable

Decodes a message from a stream.

DecodeMessage ( System expectedType ) : IEncodeable

Decodes an object from a buffer.

DecodeMessage ( byte buffer, System expectedType, ServiceMessageContext context ) : IEncodeable

Decodes a message from a buffer.

Dispose ( ) : void

Frees any unmanaged resources.

LoadStringTable ( StringTable stringTable ) : bool

Loads a string table from a binary stream.

PopNamespace ( ) : void

Pops a namespace from the namespace stack.

PushNamespace ( string namespaceUri ) : void

Pushes a namespace onto the namespace stack.

ReadBoolean ( string fieldName ) : bool

Reads a boolean from the stream.

ReadBooleanArray ( string fieldName ) : BooleanCollection

Reads a boolean array from the stream.

ReadByte ( string fieldName ) : byte

Reads a byte from the stream.

ReadByteArray ( string fieldName ) : ByteCollection

Reads a byte array from the stream.

ReadByteString ( string fieldName ) : byte[]

Reads a byte string from the stream.

ReadByteString ( string fieldName, int maxByteStringLength ) : byte[]

Reads a byte string from the stream.

ReadByteStringArray ( string fieldName ) : ByteStringCollection

Reads a byte string array from the stream.

ReadDataValue ( string fieldName ) : Opc.Ua.DataValue

Reads an DataValue from the stream.

ReadDataValueArray ( string fieldName ) : DataValueCollection

Reads an DataValue array from the stream.

ReadDateTime ( string fieldName ) : System.DateTime

Reads a UTC date/time from the stream.

ReadDateTimeArray ( string fieldName ) : DateTimeCollection

Reads a UTC date/time array from the stream.

ReadDiagnosticInfo ( string fieldName ) : DiagnosticInfo

Reads an DiagnosticInfo from the stream.

ReadDiagnosticInfoArray ( string fieldName ) : DiagnosticInfoCollection

Reads an DiagnosticInfo array from the stream.

ReadDouble ( string fieldName ) : double

Reads a double from the stream.

ReadDoubleArray ( string fieldName ) : DoubleCollection

Reads a double array from the stream.

ReadEncodeable ( string fieldName, System systemType ) : IEncodeable

Reads an encodeable object from the stream.

ReadEncodeableArray ( string fieldName, System systemType ) : Array

Reads an encodeable object array from the stream.

ReadEnumerated ( string fieldName, System enumType ) : Enum

Reads an enumerated value from the stream.

ReadEnumeratedArray ( string fieldName, System enumType ) : Array

Reads an enumerated value array from the stream.

ReadExpandedNodeId ( string fieldName ) : Opc.Ua.ExpandedNodeId

Reads an ExpandedNodeId from the stream.

ReadExpandedNodeIdArray ( string fieldName ) : ExpandedNodeIdCollection

Reads an ExpandedNodeId array from the stream.

ReadExtensionObject ( string fieldName ) : Opc.Ua.ExtensionObject

Reads an ExtensionObject from the stream.

ReadExtensionObjectArray ( string fieldName ) : ExtensionObjectCollection

Reads an extension object array from the stream.

ReadFloat ( string fieldName ) : float

Reads a float from the stream.

ReadFloatArray ( string fieldName ) : FloatCollection

Reads a float array from the stream.

ReadGuid ( string fieldName ) : Uuid

Reads a GUID from the stream.

ReadGuidArray ( string fieldName ) : UuidCollection

Reads a GUID array from the stream.

ReadInt16 ( string fieldName ) : short

Reads a short from the stream.

ReadInt16Array ( string fieldName ) : Int16Collection

Reads a short array from the stream.

ReadInt32 ( string fieldName ) : int

Reads an int from the stream.

ReadInt32Array ( string fieldName ) : Int32Collection

Reads a int array from the stream.

ReadInt64 ( string fieldName ) : long

Reads a long from the stream.

ReadInt64Array ( string fieldName ) : Int64Collection

Reads a long array from the stream.

ReadLocalizedText ( string fieldName ) : Opc.Ua.LocalizedText

Reads an LocalizedText from the stream.

ReadLocalizedTextArray ( string fieldName ) : LocalizedTextCollection

Reads an LocalizedText array from the stream.

ReadNodeId ( string fieldName ) : Opc.Ua.NodeId

Reads an NodeId from the stream.

ReadNodeIdArray ( string fieldName ) : NodeIdCollection

Reads an NodeId array from the stream.

ReadQualifiedName ( string fieldName ) : Opc.Ua.QualifiedName

Reads an QualifiedName from the stream.

ReadQualifiedNameArray ( string fieldName ) : QualifiedNameCollection

Reads an QualifiedName array from the stream.

ReadSByte ( string fieldName ) : sbyte

Reads a sbyte from the stream.

ReadSByteArray ( string fieldName ) : SByteCollection

Reads a sbyte array from the stream.

ReadStatusCode ( string fieldName ) : Opc.Ua.StatusCode

Reads an StatusCode from the stream.

ReadStatusCodeArray ( string fieldName ) : StatusCodeCollection

Reads an StatusCode array from the stream.

ReadString ( string fieldName ) : string

Reads a string from the stream.

ReadString ( string fieldName, int maxStringLength ) : string

Reads a string from the stream (throws an exception if its length exceeds the limit specified).

ReadStringArray ( string fieldName ) : StringCollection

Reads a string array from the stream.

ReadUInt16 ( string fieldName ) : ushort

Reads a ushort from the stream.

ReadUInt16Array ( string fieldName ) : UInt16Collection

Reads a ushort array from the stream.

ReadUInt32 ( string fieldName ) : uint

Reads a uint from the stream.

ReadUInt32Array ( string fieldName ) : UInt32Collection

Reads a uint array from the stream.

ReadUInt64 ( string fieldName ) : ulong

Reads a ulong from the stream.

ReadUInt64Array ( string fieldName ) : UInt64Collection

Reads a ulong array from the stream.

ReadVariantArray ( string fieldName ) : VariantCollection

Reads an Variant array from the stream.

ReadXmlElement ( string fieldName ) : XmlElement

Reads an XmlElement from the stream.

ReadXmlElementArray ( string fieldName ) : XmlElementCollection

Reads an XmlElement array from the stream.

SetMappingTables ( Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : void

Initializes the tables used to map namespace and server uris during decoding.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

비공개 메소드들

메소드 설명
ReadArrayLength ( ) : int

Reads the length of an array.

ReadExtensionObject ( ) : Opc.Ua.ExtensionObject

Reads an extension object from the stream.

ReadNodeIdBody ( byte encodingByte, Opc.Ua.NodeId value ) : void

Reads the body of a node id.

ReadVariant ( string fieldName ) : Variant

메소드 상세

BinaryDecoder() 공개 메소드

Creates a decoder that reads from a stream.
public BinaryDecoder ( Stream stream, ServiceMessageContext context ) : System
stream Stream
context ServiceMessageContext
리턴 System

BinaryDecoder() 공개 메소드

Creates a decoder that reads from a memory buffer.
public BinaryDecoder ( byte buffer, ServiceMessageContext context ) : System
buffer byte
context ServiceMessageContext
리턴 System

BinaryDecoder() 공개 메소드

Creates a decoder that reads from a memory buffer.
public BinaryDecoder ( byte buffer, int start, int count, ServiceMessageContext context ) : System
buffer byte
start int
count int
context ServiceMessageContext
리턴 System

Close() 공개 메소드

Completes reading and closes the stream.
public Close ( ) : void
리턴 void

DecodeMessage() 공개 정적인 메소드

Decodes a message from a stream.
public static DecodeMessage ( Stream stream, System expectedType, ServiceMessageContext context ) : IEncodeable
stream Stream
expectedType System
context ServiceMessageContext
리턴 IEncodeable

DecodeMessage() 공개 메소드

Decodes an object from a buffer.
public DecodeMessage ( System expectedType ) : IEncodeable
expectedType System
리턴 IEncodeable

DecodeMessage() 공개 정적인 메소드

Decodes a message from a buffer.
public static DecodeMessage ( byte buffer, System expectedType, ServiceMessageContext context ) : IEncodeable
buffer byte
expectedType System
context ServiceMessageContext
리턴 IEncodeable

Dispose() 공개 메소드

Frees any unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

LoadStringTable() 공개 메소드

Loads a string table from a binary stream.
public LoadStringTable ( StringTable stringTable ) : bool
stringTable StringTable
리턴 bool

PopNamespace() 공개 메소드

Pops a namespace from the namespace stack.
public PopNamespace ( ) : void
리턴 void

PushNamespace() 공개 메소드

Pushes a namespace onto the namespace stack.
public PushNamespace ( string namespaceUri ) : void
namespaceUri string
리턴 void

ReadBoolean() 공개 메소드

Reads a boolean from the stream.
public ReadBoolean ( string fieldName ) : bool
fieldName string
리턴 bool

ReadBooleanArray() 공개 메소드

Reads a boolean array from the stream.
public ReadBooleanArray ( string fieldName ) : BooleanCollection
fieldName string
리턴 BooleanCollection

ReadByte() 공개 메소드

Reads a byte from the stream.
public ReadByte ( string fieldName ) : byte
fieldName string
리턴 byte

ReadByteArray() 공개 메소드

Reads a byte array from the stream.
public ReadByteArray ( string fieldName ) : ByteCollection
fieldName string
리턴 ByteCollection

ReadByteString() 공개 메소드

Reads a byte string from the stream.
public ReadByteString ( string fieldName ) : byte[]
fieldName string
리턴 byte[]

ReadByteString() 공개 메소드

Reads a byte string from the stream.
public ReadByteString ( string fieldName, int maxByteStringLength ) : byte[]
fieldName string
maxByteStringLength int
리턴 byte[]

ReadByteStringArray() 공개 메소드

Reads a byte string array from the stream.
public ReadByteStringArray ( string fieldName ) : ByteStringCollection
fieldName string
리턴 ByteStringCollection

ReadDataValue() 공개 메소드

Reads an DataValue from the stream.
public ReadDataValue ( string fieldName ) : Opc.Ua.DataValue
fieldName string
리턴 Opc.Ua.DataValue

ReadDataValueArray() 공개 메소드

Reads an DataValue array from the stream.
public ReadDataValueArray ( string fieldName ) : DataValueCollection
fieldName string
리턴 DataValueCollection

ReadDateTime() 공개 메소드

Reads a UTC date/time from the stream.
public ReadDateTime ( string fieldName ) : System.DateTime
fieldName string
리턴 System.DateTime

ReadDateTimeArray() 공개 메소드

Reads a UTC date/time array from the stream.
public ReadDateTimeArray ( string fieldName ) : DateTimeCollection
fieldName string
리턴 DateTimeCollection

ReadDiagnosticInfo() 공개 메소드

Reads an DiagnosticInfo from the stream.
public ReadDiagnosticInfo ( string fieldName ) : DiagnosticInfo
fieldName string
리턴 DiagnosticInfo

ReadDiagnosticInfoArray() 공개 메소드

Reads an DiagnosticInfo array from the stream.
public ReadDiagnosticInfoArray ( string fieldName ) : DiagnosticInfoCollection
fieldName string
리턴 DiagnosticInfoCollection

ReadDouble() 공개 메소드

Reads a double from the stream.
public ReadDouble ( string fieldName ) : double
fieldName string
리턴 double

ReadDoubleArray() 공개 메소드

Reads a double array from the stream.
public ReadDoubleArray ( string fieldName ) : DoubleCollection
fieldName string
리턴 DoubleCollection

ReadEncodeable() 공개 메소드

Reads an encodeable object from the stream.
public ReadEncodeable ( string fieldName, System systemType ) : IEncodeable
fieldName string
systemType System
리턴 IEncodeable

ReadEncodeableArray() 공개 메소드

Reads an encodeable object array from the stream.
public ReadEncodeableArray ( string fieldName, System systemType ) : Array
fieldName string
systemType System
리턴 System.Array

ReadEnumerated() 공개 메소드

Reads an enumerated value from the stream.
public ReadEnumerated ( string fieldName, System enumType ) : Enum
fieldName string
enumType System
리턴 System.Enum

ReadEnumeratedArray() 공개 메소드

Reads an enumerated value array from the stream.
public ReadEnumeratedArray ( string fieldName, System enumType ) : Array
fieldName string
enumType System
리턴 System.Array

ReadExpandedNodeId() 공개 메소드

Reads an ExpandedNodeId from the stream.
public ReadExpandedNodeId ( string fieldName ) : Opc.Ua.ExpandedNodeId
fieldName string
리턴 Opc.Ua.ExpandedNodeId

ReadExpandedNodeIdArray() 공개 메소드

Reads an ExpandedNodeId array from the stream.
public ReadExpandedNodeIdArray ( string fieldName ) : ExpandedNodeIdCollection
fieldName string
리턴 ExpandedNodeIdCollection

ReadExtensionObject() 공개 메소드

Reads an ExtensionObject from the stream.
public ReadExtensionObject ( string fieldName ) : Opc.Ua.ExtensionObject
fieldName string
리턴 Opc.Ua.ExtensionObject

ReadExtensionObjectArray() 공개 메소드

Reads an extension object array from the stream.
public ReadExtensionObjectArray ( string fieldName ) : ExtensionObjectCollection
fieldName string
리턴 ExtensionObjectCollection

ReadFloat() 공개 메소드

Reads a float from the stream.
public ReadFloat ( string fieldName ) : float
fieldName string
리턴 float

ReadFloatArray() 공개 메소드

Reads a float array from the stream.
public ReadFloatArray ( string fieldName ) : FloatCollection
fieldName string
리턴 FloatCollection

ReadGuid() 공개 메소드

Reads a GUID from the stream.
public ReadGuid ( string fieldName ) : Uuid
fieldName string
리턴 Uuid

ReadGuidArray() 공개 메소드

Reads a GUID array from the stream.
public ReadGuidArray ( string fieldName ) : UuidCollection
fieldName string
리턴 UuidCollection

ReadInt16() 공개 메소드

Reads a short from the stream.
public ReadInt16 ( string fieldName ) : short
fieldName string
리턴 short

ReadInt16Array() 공개 메소드

Reads a short array from the stream.
public ReadInt16Array ( string fieldName ) : Int16Collection
fieldName string
리턴 Int16Collection

ReadInt32() 공개 메소드

Reads an int from the stream.
public ReadInt32 ( string fieldName ) : int
fieldName string
리턴 int

ReadInt32Array() 공개 메소드

Reads a int array from the stream.
public ReadInt32Array ( string fieldName ) : Int32Collection
fieldName string
리턴 Int32Collection

ReadInt64() 공개 메소드

Reads a long from the stream.
public ReadInt64 ( string fieldName ) : long
fieldName string
리턴 long

ReadInt64Array() 공개 메소드

Reads a long array from the stream.
public ReadInt64Array ( string fieldName ) : Int64Collection
fieldName string
리턴 Int64Collection

ReadLocalizedText() 공개 메소드

Reads an LocalizedText from the stream.
public ReadLocalizedText ( string fieldName ) : Opc.Ua.LocalizedText
fieldName string
리턴 Opc.Ua.LocalizedText

ReadLocalizedTextArray() 공개 메소드

Reads an LocalizedText array from the stream.
public ReadLocalizedTextArray ( string fieldName ) : LocalizedTextCollection
fieldName string
리턴 LocalizedTextCollection

ReadNodeId() 공개 메소드

Reads an NodeId from the stream.
public ReadNodeId ( string fieldName ) : Opc.Ua.NodeId
fieldName string
리턴 Opc.Ua.NodeId

ReadNodeIdArray() 공개 메소드

Reads an NodeId array from the stream.
public ReadNodeIdArray ( string fieldName ) : NodeIdCollection
fieldName string
리턴 NodeIdCollection

ReadQualifiedName() 공개 메소드

Reads an QualifiedName from the stream.
public ReadQualifiedName ( string fieldName ) : Opc.Ua.QualifiedName
fieldName string
리턴 Opc.Ua.QualifiedName

ReadQualifiedNameArray() 공개 메소드

Reads an QualifiedName array from the stream.
public ReadQualifiedNameArray ( string fieldName ) : QualifiedNameCollection
fieldName string
리턴 QualifiedNameCollection

ReadSByte() 공개 메소드

Reads a sbyte from the stream.
public ReadSByte ( string fieldName ) : sbyte
fieldName string
리턴 sbyte

ReadSByteArray() 공개 메소드

Reads a sbyte array from the stream.
public ReadSByteArray ( string fieldName ) : SByteCollection
fieldName string
리턴 SByteCollection

ReadStatusCode() 공개 메소드

Reads an StatusCode from the stream.
public ReadStatusCode ( string fieldName ) : Opc.Ua.StatusCode
fieldName string
리턴 Opc.Ua.StatusCode

ReadStatusCodeArray() 공개 메소드

Reads an StatusCode array from the stream.
public ReadStatusCodeArray ( string fieldName ) : StatusCodeCollection
fieldName string
리턴 StatusCodeCollection

ReadString() 공개 메소드

Reads a string from the stream.
public ReadString ( string fieldName ) : string
fieldName string
리턴 string

ReadString() 공개 메소드

Reads a string from the stream (throws an exception if its length exceeds the limit specified).
public ReadString ( string fieldName, int maxStringLength ) : string
fieldName string
maxStringLength int
리턴 string

ReadStringArray() 공개 메소드

Reads a string array from the stream.
public ReadStringArray ( string fieldName ) : StringCollection
fieldName string
리턴 StringCollection

ReadUInt16() 공개 메소드

Reads a ushort from the stream.
public ReadUInt16 ( string fieldName ) : ushort
fieldName string
리턴 ushort

ReadUInt16Array() 공개 메소드

Reads a ushort array from the stream.
public ReadUInt16Array ( string fieldName ) : UInt16Collection
fieldName string
리턴 UInt16Collection

ReadUInt32() 공개 메소드

Reads a uint from the stream.
public ReadUInt32 ( string fieldName ) : uint
fieldName string
리턴 uint

ReadUInt32Array() 공개 메소드

Reads a uint array from the stream.
public ReadUInt32Array ( string fieldName ) : UInt32Collection
fieldName string
리턴 UInt32Collection

ReadUInt64() 공개 메소드

Reads a ulong from the stream.
public ReadUInt64 ( string fieldName ) : ulong
fieldName string
리턴 ulong

ReadUInt64Array() 공개 메소드

Reads a ulong array from the stream.
public ReadUInt64Array ( string fieldName ) : UInt64Collection
fieldName string
리턴 UInt64Collection

ReadVariantArray() 공개 메소드

Reads an Variant array from the stream.
public ReadVariantArray ( string fieldName ) : VariantCollection
fieldName string
리턴 VariantCollection

ReadXmlElement() 공개 메소드

Reads an XmlElement from the stream.
public ReadXmlElement ( string fieldName ) : XmlElement
fieldName string
리턴 System.Xml.XmlElement

ReadXmlElementArray() 공개 메소드

Reads an XmlElement array from the stream.
public ReadXmlElementArray ( string fieldName ) : XmlElementCollection
fieldName string
리턴 System.Xml.XmlElementCollection

SetMappingTables() 공개 메소드

Initializes the tables used to map namespace and server uris during decoding.
public SetMappingTables ( Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : void
namespaceUris Opc.Ua.NamespaceTable The namespaces URIs referenced by the data being decoded.
serverUris StringTable The server URIs referenced by the data being decoded.
리턴 void