C# Class BACnet.Tagging.TagWriter

Afficher le fichier Open project: LorenVS/bacstack Class Usage Examples

Méthodes publiques

Méthode Description
TagWriter ( Stream stream ) : System

Constructs a new TagWriter instance

WriteBitString24 ( BitString24 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBitString56 ( BitString56 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBitString8 ( BitString8 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBoolean ( bool value, byte tag = 255 ) : void

Writes a boolean tag to the stream

WriteCharString ( string value, byte tag = 255 ) : void

Writes a char string tag to the stream

WriteCloseTag ( byte tag ) : void

Writes a close tag to the stream

WriteDate ( Date value, byte tag = 255 ) : void

Writes a date value to the stream

WriteEnumerated ( uint value, byte tag = 255 ) : void

Writes an enumerated value to the stream

WriteFloat32 ( float value, byte tag = 255 ) : void

Writes a float32 tag to the stream

WriteFloat64 ( double value, byte tag = 255 ) : void

Writes a float64 tag to the stream

WriteGeneric ( GenericValue value, byte tag = 255 ) : void

Writes a generic value to the stream

WriteNull ( System.Null value, byte tag = 255 ) : void

Writes a null tag to the stream

WriteObjectId ( ObjectId value, byte tag = 255 ) : void

Writes an object id value to the stream

WriteOctetString ( byte value, byte tag = 255 ) : void

Writes an octet string tag to the stream

WriteOpenTag ( byte tag ) : void

Writes an open tag to the stream

WriteSigned16 ( short value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned32 ( int value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned64 ( long value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned8 ( sbyte value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteTime ( Time value, byte tag = 255 ) : void

Writes a time value to the stream

WriteUnsigned16 ( ushort value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned32 ( uint value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned64 ( ulong value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned8 ( byte value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

Private Methods

Méthode Description
_writeHeader ( byte tagNumber, ApplicationTag defaultTag, byte lvt ) : void

Writes a tag header to the stream

_writeLengthHeader ( byte tagNumber, ApplicationTag defaultTag, int length ) : void

Writes a tag header with a length LVT

_writeTypeHeader ( byte tagNumber, TagType type ) : void

Writes a tag header with a type LVT

_writeValueHeader ( byte tagNumber, ApplicationTag defaultTag, bool value ) : void

Writes a tag header with a value LVT

Method Details

TagWriter() public méthode

Constructs a new TagWriter instance
public TagWriter ( Stream stream ) : System
stream Stream The stream to write tags to
Résultat System

WriteBitString24() public méthode

Writes a bitstring value to the stream
public WriteBitString24 ( BitString24 value, byte tag = 255 ) : void
value BACnet.Types.BitString24 The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteBitString56() public méthode

Writes a bitstring value to the stream
public WriteBitString56 ( BitString56 value, byte tag = 255 ) : void
value BACnet.Types.BitString56 The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteBitString8() public méthode

Writes a bitstring value to the stream
public WriteBitString8 ( BitString8 value, byte tag = 255 ) : void
value BACnet.Types.BitString8 The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteBoolean() public méthode

Writes a boolean tag to the stream
public WriteBoolean ( bool value, byte tag = 255 ) : void
value bool The boolean value
tag byte The tag number, or 255 for an application tag
Résultat void

WriteCharString() public méthode

Writes a char string tag to the stream
public WriteCharString ( string value, byte tag = 255 ) : void
value string The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteCloseTag() public méthode

Writes a close tag to the stream
public WriteCloseTag ( byte tag ) : void
tag byte The context tag number of the tag, or 255 for no tag
Résultat void

WriteDate() public méthode

Writes a date value to the stream
public WriteDate ( Date value, byte tag = 255 ) : void
value Date The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteEnumerated() public méthode

Writes an enumerated value to the stream
public WriteEnumerated ( uint value, byte tag = 255 ) : void
value uint The value to write
tag byte The tag number, or 255 fo an application tag
Résultat void

WriteFloat32() public méthode

Writes a float32 tag to the stream
public WriteFloat32 ( float value, byte tag = 255 ) : void
value float The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteFloat64() public méthode

Writes a float64 tag to the stream
public WriteFloat64 ( double value, byte tag = 255 ) : void
value double The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteGeneric() public méthode

Writes a generic value to the stream
public WriteGeneric ( GenericValue value, byte tag = 255 ) : void
value GenericValue The value to write
tag byte The wrapper tag number, or 255 for no wrapper tag
Résultat void

WriteNull() public méthode

Writes a null tag to the stream
public WriteNull ( System.Null value, byte tag = 255 ) : void
value System.Null The null value
tag byte The tag number, or 255 for an application tag
Résultat void

WriteObjectId() public méthode

Writes an object id value to the stream
public WriteObjectId ( ObjectId value, byte tag = 255 ) : void
value ObjectId The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteOctetString() public méthode

Writes an octet string tag to the stream
public WriteOctetString ( byte value, byte tag = 255 ) : void
value byte The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteOpenTag() public méthode

Writes an open tag to the stream
public WriteOpenTag ( byte tag ) : void
tag byte The context tag number of the tag, or 255 for no tag
Résultat void

WriteSigned16() public méthode

Writes a signed tag to the stream
public WriteSigned16 ( short value, byte tag = 255 ) : void
value short The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteSigned32() public méthode

Writes a signed tag to the stream
public WriteSigned32 ( int value, byte tag = 255 ) : void
value int The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteSigned64() public méthode

Writes a signed tag to the stream
public WriteSigned64 ( long value, byte tag = 255 ) : void
value long The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteSigned8() public méthode

Writes a signed tag to the stream
public WriteSigned8 ( sbyte value, byte tag = 255 ) : void
value sbyte The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteTime() public méthode

Writes a time value to the stream
public WriteTime ( Time value, byte tag = 255 ) : void
value BACnet.Types.Time The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteUnsigned16() public méthode

Writes an unsigned tag to the stream
public WriteUnsigned16 ( ushort value, byte tag = 255 ) : void
value ushort The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteUnsigned32() public méthode

Writes an unsigned tag to the stream
public WriteUnsigned32 ( uint value, byte tag = 255 ) : void
value uint The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteUnsigned64() public méthode

Writes an unsigned tag to the stream
public WriteUnsigned64 ( ulong value, byte tag = 255 ) : void
value ulong The value to write
tag byte The tag number, or 255 for an application tag
Résultat void

WriteUnsigned8() public méthode

Writes an unsigned tag to the stream
public WriteUnsigned8 ( byte value, byte tag = 255 ) : void
value byte The value to write
tag byte The tag number, or 255 for an application tag
Résultat void