.NET Based OPC UA Client/Server SDK  2.6.0.418
UnifiedAutomation.UaBase.BinaryDecoder Class Reference

Decodes objects from a UA Binary encoded stream. More...

Inherits UnifiedAutomation.UaBase.IDecoder, and IDisposable.

Public Member Functions

 BinaryDecoder (byte[] buffer, MessageContext context)
 Creates a decoder that reads from a memory buffer. More...
 
 BinaryDecoder (byte[] buffer, int start, int count, MessageContext context)
 Creates a decoder that reads from a memory buffer. More...
 
 BinaryDecoder (Stream stream, MessageContext context)
 Creates a decoder that reads from a stream. More...
 
void Dispose ()
 Frees any unmanaged resources. More...
 
void SetMappingTables (NamespaceTable namespaceUris, StringTable serverUris)
 Initializes the tables used to map namespace and server uris during decoding. More...
 
void Close ()
 Completes reading and closes the stream. More...
 
IEncodeable DecodeMessage (System.Type expectedType)
 Decodes an object from a buffer. More...
 
bool LoadStringTable (StringTable stringTable)
 Loads a string table from a binary stream. More...
 
void PushNamespace (string namespaceUri)
 Pushes a namespace onto the namespace stack. More...
 
void PopNamespace ()
 Pops a namespace from the namespace stack. More...
 
bool ReadBoolean (string fieldName)
 Reads a boolean from the stream. More...
 
sbyte ReadSByte (string fieldName)
 Reads a sbyte from the stream. More...
 
byte ReadByte (string fieldName)
 Reads a byte from the stream. More...
 
short ReadInt16 (string fieldName)
 Reads a short from the stream. More...
 
ushort ReadUInt16 (string fieldName)
 Reads a ushort from the stream. More...
 
int ReadInt32 (string fieldName)
 Reads an int from the stream. More...
 
uint ReadUInt32 (string fieldName)
 Reads a uint from the stream. More...
 
long ReadInt64 (string fieldName)
 Reads a long from the stream. More...
 
ulong ReadUInt64 (string fieldName)
 Reads a ulong from the stream. More...
 
float ReadFloat (string fieldName)
 Reads a float from the stream. More...
 
double ReadDouble (string fieldName)
 Reads a double from the stream. More...
 
string ReadString (string fieldName)
 Reads a string from the stream. More...
 
string ReadString (string fieldName, int maxStringLength)
 Reads a string from the stream (throws an exception if its length exceeds the limit specified). More...
 
DateTime ReadDateTime (string fieldName)
 Reads a UTC date/time from the stream. More...
 
Uuid ReadGuid (string fieldName)
 Reads a GUID from the stream. More...
 
byte[] ReadByteString (string fieldName)
 Reads a byte string from the stream. More...
 
byte[] ReadByteString (string fieldName, int maxByteStringLength)
 Reads a byte string from the stream. More...
 
XmlElement ReadXmlElement (string fieldName)
 Reads an XmlElement from the stream. More...
 
NodeId ReadNodeId (string fieldName)
 Reads an NodeId from the stream. More...
 
ExpandedNodeId ReadExpandedNodeId (string fieldName)
 Reads an ExpandedNodeId from the stream. More...
 
StatusCode ReadStatusCode (string fieldName)
 Reads an StatusCode from the stream. More...
 
DiagnosticInfo ReadDiagnosticInfo (string fieldName)
 Reads an DiagnosticInfo from the stream. More...
 
QualifiedName ReadQualifiedName (string fieldName)
 Reads an QualifiedName from the stream. More...
 
LocalizedText ReadLocalizedText (string fieldName)
 Reads an LocalizedText from the stream. More...
 
Variant ReadVariant (string fieldName)
 Reads an Variant from the stream. More...
 
DataValue ReadDataValue (string fieldName)
 Reads an DataValue from the stream. More...
 
ExtensionObject ReadExtensionObject (string fieldName)
 Reads an ExtensionObject from the stream. More...
 
IEncodeable ReadEncodeable (string fieldName, System.Type systemType)
 Reads an encodeable object from the stream. More...
 
IEncodeable ReadGenericEncodeable (string fieldName, GenericStructureDataType genericType)
 Reads a generic object from the stream. More...
 
Enum ReadEnumerated (string fieldName, System.Type enumType)
 Reads an enumerated value from the stream. More...
 
BooleanCollection ReadBooleanArray (string fieldName)
 Reads a boolean array from the stream. More...
 
SByteCollection ReadSByteArray (string fieldName)
 Reads a sbyte array from the stream. More...
 
ByteCollection ReadByteArray (string fieldName)
 Reads a byte array from the stream. More...
 
Int16Collection ReadInt16Array (string fieldName)
 Reads a short array from the stream. More...
 
UInt16Collection ReadUInt16Array (string fieldName)
 Reads a ushort array from the stream. More...
 
Int32Collection ReadInt32Array (string fieldName)
 Reads a int array from the stream. More...
 
UInt32Collection ReadUInt32Array (string fieldName)
 Reads a uint array from the stream. More...
 
Int64Collection ReadInt64Array (string fieldName)
 Reads a long array from the stream. More...
 
UInt64Collection ReadUInt64Array (string fieldName)
 Reads a ulong array from the stream. More...
 
FloatCollection ReadFloatArray (string fieldName)
 Reads a float array from the stream. More...
 
DoubleCollection ReadDoubleArray (string fieldName)
 Reads a double array from the stream. More...
 
StringCollection ReadStringArray (string fieldName)
 Reads a string array from the stream. More...
 
DateTimeCollection ReadDateTimeArray (string fieldName)
 Reads a UTC date/time array from the stream. More...
 
UuidCollection ReadGuidArray (string fieldName)
 Reads a GUID array from the stream. More...
 
ByteStringCollection ReadByteStringArray (string fieldName)
 Reads a byte string array from the stream. More...
 
XmlElementCollection ReadXmlElementArray (string fieldName)
 Reads an XmlElement array from the stream. More...
 
NodeIdCollection ReadNodeIdArray (string fieldName)
 Reads an NodeId array from the stream. More...
 
ExpandedNodeIdCollection ReadExpandedNodeIdArray (string fieldName)
 Reads an ExpandedNodeId array from the stream. More...
 
StatusCodeCollection ReadStatusCodeArray (string fieldName)
 Reads an StatusCode array from the stream. More...
 
DiagnosticInfoCollection ReadDiagnosticInfoArray (string fieldName)
 Reads an DiagnosticInfo array from the stream. More...
 
QualifiedNameCollection ReadQualifiedNameArray (string fieldName)
 Reads an QualifiedName array from the stream. More...
 
LocalizedTextCollection ReadLocalizedTextArray (string fieldName)
 Reads an LocalizedText array from the stream. More...
 
VariantCollection ReadVariantArray (string fieldName)
 Reads an Variant array from the stream. More...
 
DataValueCollection ReadDataValueArray (string fieldName)
 Reads an DataValue array from the stream. More...
 
ExtensionObjectCollection ReadExtensionObjectArray (string fieldName)
 Reads an extension object array from the stream. More...
 
Array ReadEncodeableArray (string fieldName, System.Type systemType)
 Reads an encodeable object array from the stream. More...
 
Array ReadGenericEncodeableArray (string fieldName, GenericStructureDataType genericType)
 Reads an generic object array from the stream. More...
 
Array ReadEnumeratedArray (string fieldName, System.Type enumType)
 Reads an enumerated value array from the stream. More...
 

Static Public Member Functions

static IEncodeable DecodeMessage (Stream stream, System.Type expectedType, MessageContext context)
 Decodes a message from a stream. More...
 
static IEncodeable DecodeMessage (byte[] buffer, System.Type expectedType, MessageContext context)
 Decodes a message from a buffer. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 An overrideable version of the Dispose. More...
 

Properties

int Position [get]
 Returns the current position in the stream. More...
 
EncodingType EncodingType [get]
 The type of encoding being used. More...
 
MessageContext Context [get]
 The message context associated with the decoder. More...
 
- Properties inherited from UnifiedAutomation.UaBase.IDecoder
EncodingType EncodingType [get]
 The type of encoding being used. More...
 
MessageContext Context [get]
 The message context associated with the decoder. More...
 

Detailed Description

Decodes objects from a UA Binary encoded stream.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.BinaryDecoder.BinaryDecoder ( byte[]  buffer,
MessageContext  context 
)
inline

Creates a decoder that reads from a memory buffer.

UnifiedAutomation.UaBase.BinaryDecoder.BinaryDecoder ( byte[]  buffer,
int  start,
int  count,
MessageContext  context 
)
inline

Creates a decoder that reads from a memory buffer.

UnifiedAutomation.UaBase.BinaryDecoder.BinaryDecoder ( Stream  stream,
MessageContext  context 
)
inline

Creates a decoder that reads from a stream.

Member Function Documentation

void UnifiedAutomation.UaBase.BinaryDecoder.Close ( )
inline

Completes reading and closes the stream.

static IEncodeable UnifiedAutomation.UaBase.BinaryDecoder.DecodeMessage ( Stream  stream,
System.Type  expectedType,
MessageContext  context 
)
inlinestatic

Decodes a message from a stream.

static IEncodeable UnifiedAutomation.UaBase.BinaryDecoder.DecodeMessage ( byte[]  buffer,
System.Type  expectedType,
MessageContext  context 
)
inlinestatic

Decodes a message from a buffer.

IEncodeable UnifiedAutomation.UaBase.BinaryDecoder.DecodeMessage ( System.Type  expectedType)
inline

Decodes an object from a buffer.

void UnifiedAutomation.UaBase.BinaryDecoder.Dispose ( )
inline

Frees any unmanaged resources.

virtual void UnifiedAutomation.UaBase.BinaryDecoder.Dispose ( bool  disposing)
inlineprotectedvirtual

An overrideable version of the Dispose.

bool UnifiedAutomation.UaBase.BinaryDecoder.LoadStringTable ( StringTable  stringTable)
inline

Loads a string table from a binary stream.

void UnifiedAutomation.UaBase.BinaryDecoder.PopNamespace ( )
inline

Pops a namespace from the namespace stack.

Implements UnifiedAutomation.UaBase.IDecoder.

void UnifiedAutomation.UaBase.BinaryDecoder.PushNamespace ( string  namespaceUri)
inline

Pushes a namespace onto the namespace stack.

Implements UnifiedAutomation.UaBase.IDecoder.

bool UnifiedAutomation.UaBase.BinaryDecoder.ReadBoolean ( string  fieldName)
inline

Reads a boolean from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

BooleanCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadBooleanArray ( string  fieldName)
inline

Reads a boolean array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

byte UnifiedAutomation.UaBase.BinaryDecoder.ReadByte ( string  fieldName)
inline

Reads a byte from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ByteCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadByteArray ( string  fieldName)
inline

Reads a byte array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

byte [] UnifiedAutomation.UaBase.BinaryDecoder.ReadByteString ( string  fieldName)
inline

Reads a byte string from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

byte [] UnifiedAutomation.UaBase.BinaryDecoder.ReadByteString ( string  fieldName,
int  maxByteStringLength 
)
inline

Reads a byte string from the stream.

ByteStringCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadByteStringArray ( string  fieldName)
inline

Reads a byte string array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DataValue UnifiedAutomation.UaBase.BinaryDecoder.ReadDataValue ( string  fieldName)
inline

Reads an DataValue from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DataValueCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadDataValueArray ( string  fieldName)
inline

Reads an DataValue array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DateTime UnifiedAutomation.UaBase.BinaryDecoder.ReadDateTime ( string  fieldName)
inline

Reads a UTC date/time from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DateTimeCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadDateTimeArray ( string  fieldName)
inline

Reads a UTC date/time array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DiagnosticInfo UnifiedAutomation.UaBase.BinaryDecoder.ReadDiagnosticInfo ( string  fieldName)
inline

Reads an DiagnosticInfo from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DiagnosticInfoCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadDiagnosticInfoArray ( string  fieldName)
inline

Reads an DiagnosticInfo array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

double UnifiedAutomation.UaBase.BinaryDecoder.ReadDouble ( string  fieldName)
inline

Reads a double from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

DoubleCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadDoubleArray ( string  fieldName)
inline

Reads a double array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

IEncodeable UnifiedAutomation.UaBase.BinaryDecoder.ReadEncodeable ( string  fieldName,
System.Type  systemType 
)
inline

Reads an encodeable object from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Array UnifiedAutomation.UaBase.BinaryDecoder.ReadEncodeableArray ( string  fieldName,
System.Type  systemType 
)
inline

Reads an encodeable object array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Enum UnifiedAutomation.UaBase.BinaryDecoder.ReadEnumerated ( string  fieldName,
System.Type  enumType 
)
inline

Reads an enumerated value from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Array UnifiedAutomation.UaBase.BinaryDecoder.ReadEnumeratedArray ( string  fieldName,
System.Type  enumType 
)
inline

Reads an enumerated value array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ExpandedNodeId UnifiedAutomation.UaBase.BinaryDecoder.ReadExpandedNodeId ( string  fieldName)
inline

Reads an ExpandedNodeId from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ExpandedNodeIdCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadExpandedNodeIdArray ( string  fieldName)
inline

Reads an ExpandedNodeId array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ExtensionObject UnifiedAutomation.UaBase.BinaryDecoder.ReadExtensionObject ( string  fieldName)
inline

Reads an ExtensionObject from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ExtensionObjectCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadExtensionObjectArray ( string  fieldName)
inline

Reads an extension object array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

float UnifiedAutomation.UaBase.BinaryDecoder.ReadFloat ( string  fieldName)
inline

Reads a float from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

FloatCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadFloatArray ( string  fieldName)
inline

Reads a float array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

IEncodeable UnifiedAutomation.UaBase.BinaryDecoder.ReadGenericEncodeable ( string  fieldName,
GenericStructureDataType  genericType 
)
inline

Reads a generic object from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Array UnifiedAutomation.UaBase.BinaryDecoder.ReadGenericEncodeableArray ( string  fieldName,
GenericStructureDataType  genericType 
)
inline

Reads an generic object array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Uuid UnifiedAutomation.UaBase.BinaryDecoder.ReadGuid ( string  fieldName)
inline

Reads a GUID from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

UuidCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadGuidArray ( string  fieldName)
inline

Reads a GUID array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

short UnifiedAutomation.UaBase.BinaryDecoder.ReadInt16 ( string  fieldName)
inline

Reads a short from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Int16Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadInt16Array ( string  fieldName)
inline

Reads a short array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

int UnifiedAutomation.UaBase.BinaryDecoder.ReadInt32 ( string  fieldName)
inline

Reads an int from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Int32Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadInt32Array ( string  fieldName)
inline

Reads a int array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

long UnifiedAutomation.UaBase.BinaryDecoder.ReadInt64 ( string  fieldName)
inline

Reads a long from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Int64Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadInt64Array ( string  fieldName)
inline

Reads a long array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

LocalizedText UnifiedAutomation.UaBase.BinaryDecoder.ReadLocalizedText ( string  fieldName)
inline

Reads an LocalizedText from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

LocalizedTextCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadLocalizedTextArray ( string  fieldName)
inline

Reads an LocalizedText array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

NodeId UnifiedAutomation.UaBase.BinaryDecoder.ReadNodeId ( string  fieldName)
inline

Reads an NodeId from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

NodeIdCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadNodeIdArray ( string  fieldName)
inline

Reads an NodeId array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

QualifiedName UnifiedAutomation.UaBase.BinaryDecoder.ReadQualifiedName ( string  fieldName)
inline

Reads an QualifiedName from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

QualifiedNameCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadQualifiedNameArray ( string  fieldName)
inline

Reads an QualifiedName array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

sbyte UnifiedAutomation.UaBase.BinaryDecoder.ReadSByte ( string  fieldName)
inline

Reads a sbyte from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

SByteCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadSByteArray ( string  fieldName)
inline

Reads a sbyte array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

StatusCode UnifiedAutomation.UaBase.BinaryDecoder.ReadStatusCode ( string  fieldName)
inline

Reads an StatusCode from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

StatusCodeCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadStatusCodeArray ( string  fieldName)
inline

Reads an StatusCode array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

string UnifiedAutomation.UaBase.BinaryDecoder.ReadString ( string  fieldName)
inline

Reads a string from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

string UnifiedAutomation.UaBase.BinaryDecoder.ReadString ( string  fieldName,
int  maxStringLength 
)
inline

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

StringCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadStringArray ( string  fieldName)
inline

Reads a string array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ushort UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt16 ( string  fieldName)
inline

Reads a ushort from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

UInt16Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt16Array ( string  fieldName)
inline

Reads a ushort array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

uint UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt32 ( string  fieldName)
inline

Reads a uint from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

UInt32Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt32Array ( string  fieldName)
inline

Reads a uint array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

ulong UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt64 ( string  fieldName)
inline

Reads a ulong from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

UInt64Collection UnifiedAutomation.UaBase.BinaryDecoder.ReadUInt64Array ( string  fieldName)
inline

Reads a ulong array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

Variant UnifiedAutomation.UaBase.BinaryDecoder.ReadVariant ( string  fieldName)
inline

Reads an Variant from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

VariantCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadVariantArray ( string  fieldName)
inline

Reads an Variant array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

XmlElement UnifiedAutomation.UaBase.BinaryDecoder.ReadXmlElement ( string  fieldName)
inline

Reads an XmlElement from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

XmlElementCollection UnifiedAutomation.UaBase.BinaryDecoder.ReadXmlElementArray ( string  fieldName)
inline

Reads an XmlElement array from the stream.

Implements UnifiedAutomation.UaBase.IDecoder.

void UnifiedAutomation.UaBase.BinaryDecoder.SetMappingTables ( NamespaceTable  namespaceUris,
StringTable  serverUris 
)
inline

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

Parameters
namespaceUrisThe namespaces URIs referenced by the data being decoded.
serverUrisThe server URIs referenced by the data being decoded.

Property Documentation

MessageContext UnifiedAutomation.UaBase.BinaryDecoder.Context
get

The message context associated with the decoder.

EncodingType UnifiedAutomation.UaBase.BinaryDecoder.EncodingType
get

The type of encoding being used.

int UnifiedAutomation.UaBase.BinaryDecoder.Position
get

Returns the current position in the stream.


The documentation for this class was generated from the following file: