Class TagValue
Inheritance
System.Object
TagValue
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: FixAntenna.Message.dll
Syntax
public sealed class TagValue
Constructors
TagValue(Boolean)
Declaration
public TagValue(bool isFromPool = false)
Parameters
Type |
Name |
Description |
System.Boolean |
isFromPool |
|
TagValue(Int32)
Declaration
public TagValue(int tagId)
Parameters
Type |
Name |
Description |
System.Int32 |
tagId |
|
TagValue(Int32, Byte[], Boolean)
Declaration
public TagValue(int tagId, byte[] value, bool readOnly = false)
Parameters
Type |
Name |
Description |
System.Int32 |
tagId |
|
System.Byte[] |
value |
|
System.Boolean |
readOnly |
|
TagValue(Int32, Byte[], Int32, Int32, Boolean)
Declaration
public TagValue(int id, byte[] buffer, int offset, int length, bool readOnly = false)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
length |
|
System.Boolean |
readOnly |
|
TagValue(Int32, Double, Int32)
Declaration
public TagValue(int tagId, double value, int precision)
Parameters
Type |
Name |
Description |
System.Int32 |
tagId |
|
System.Double |
value |
|
System.Int32 |
precision |
|
TagValue(Int32, Int64)
Declaration
public TagValue(int tagId, long value)
Parameters
Type |
Name |
Description |
System.Int32 |
tagId |
|
System.Int64 |
value |
|
TagValue(Int32, String)
Declaration
public TagValue(int tagId, string text)
Parameters
Type |
Name |
Description |
System.Int32 |
tagId |
|
System.String |
text |
|
Properties
Buffer
Declaration
public byte[] Buffer { get; }
Property Value
Type |
Description |
System.Byte[] |
|
DoubleValue
Declaration
public double DoubleValue { get; }
Property Value
Type |
Description |
System.Double |
|
FullSize
Gets field size as length of array segment plus length of tag value plus 1 ('=' char).
Declaration
public int FullSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsFromPool
Declaration
public bool IsFromPool { get; }
Property Value
Type |
Description |
System.Boolean |
|
Length
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
LongValue
Declaration
public long LongValue { get; }
Property Value
Type |
Description |
System.Int64 |
|
Offset
Declaration
public int Offset { get; }
Property Value
Type |
Description |
System.Int32 |
|
StringValue
Declaration
public string StringValue { get; }
Property Value
Type |
Description |
System.String |
|
TagId
Declaration
public int TagId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Value
Use with caution. Each GetValue do Array.Copy.
Declaration
public byte[] Value { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
Methods
CalculateChecksum()
Declaration
public long CalculateChecksum()
Returns
Type |
Description |
System.Int64 |
|
Clone()
Declaration
Returns
Equals(TagValue)
Declaration
public bool Equals(TagValue value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
ToByteArray()
Declaration
public byte[] ToByteArray()
Returns
Type |
Description |
System.Byte[] |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()