Class BaseGroup
Base class for repeating groups.
Inheritance
System.Object
BaseGroup
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public abstract class BaseGroup : object, IGroup, IFieldSet, ICloneable
Fields
buffer
Declaration
protected MemoryPointer<byte> buffer
Field Value
hasData
True if group has data, false otherwise.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
index
Index of current group entry.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
Count
Declaration
public abstract int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Declaration
public string this[int tag] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Property Value
Type |
Description |
System.String |
|
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public abstract object Clone()
Returns
Type |
Description |
System.Object |
A new object that is a copy of this instance.
|
Contains(Int32)
Declaration
public abstract bool Contains(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Boolean |
|
GetBoolean(Int32)
Declaration
public abstract bool GetBoolean(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Boolean |
|
GetByte(Int32)
Declaration
public abstract byte GetByte(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Byte |
|
GetBytes(Int32)
Declaration
public abstract ReadOnlySpan<byte> GetBytes(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
ReadOnlySpan<System.Byte> |
|
GetChar(Int32)
Declaration
public abstract char GetChar(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Char |
|
GetComposite(Int32)
Declaration
public abstract IComposite GetComposite(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
GetComposite<T>(Int32)
Declaration
public abstract T GetComposite<T>(int tag)
where T : IComposite
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type Parameters
GetDecimal(Int32)
Declaration
public abstract decimal GetDecimal(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Decimal |
|
GetEnum<T>(Int32)
Declaration
public abstract T GetEnum<T>(int tag)
where T : struct
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type Parameters
GetEnumerator()
Declaration
public IEnumerator<IFieldSet> GetEnumerator()
Returns
GetGroup(Int32)
Declaration
public abstract IGroup GetGroup(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
GetInteger(Int32)
Declaration
public abstract int GetInteger(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Int32 |
|
GetLong(Int32)
Declaration
public abstract long GetLong(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Int64 |
|
GetMaturityMonthYear(Int32)
Declaration
public abstract IMaturityMonthYear GetMaturityMonthYear(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
GetShort(Int32)
Declaration
public abstract short GetShort(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.Int16 |
|
GetSignedByte(Int32)
Declaration
public abstract sbyte GetSignedByte(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.SByte |
|
GetString(Int32)
Declaration
public abstract string GetString(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.String |
|
GetTimestamp(Int32)
Declaration
public abstract ITimestamp GetTimestamp(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
GetUnsignedInteger(Int32)
Declaration
public abstract uint GetUnsignedInteger(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.UInt32 |
|
GetUnsignedLong(Int32)
Declaration
public abstract ulong GetUnsignedLong(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.UInt64 |
|
GetUnsignedShort(Int32)
Declaration
public abstract ushort GetUnsignedShort(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
Type |
Description |
System.UInt16 |
|
GetVariableLengthField(Int32)
Declaration
public abstract IVariableLengthField GetVariableLengthField(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
MoveNext()
Declaration
public abstract bool MoveNext()
Returns
Type |
Description |
System.Boolean |
|
Reset()
Declaration
public abstract void Reset()
ResizeGroup(Int32, Int32)
Resize repeating group and copy requered data.
Declaration
protected void ResizeGroup(int oldSize, int newSize)
Parameters
Type |
Name |
Description |
System.Int32 |
oldSize |
Old size of repeating group.
|
System.Int32 |
newSize |
New size of repeating group.
|
Exceptions
SetBoolean(Int32, Boolean)
Declaration
public abstract IFieldSet SetBoolean(int tag, bool value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Boolean |
value |
|
Returns
SetByte(Int32, Byte)
Declaration
public abstract IFieldSet SetByte(int tag, byte value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Byte |
value |
|
Returns
SetByte(Int32, Int32)
Declaration
public abstract IFieldSet SetByte(int tag, int value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
value |
|
Returns
SetBytes(Int32, ReadOnlySpan<Byte>)
Declaration
public abstract IFieldSet SetBytes(int tag, ReadOnlySpan<byte> value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
ReadOnlySpan<System.Byte> |
value |
|
Returns
SetChar(Int32, Char)
Declaration
public abstract IFieldSet SetChar(int tag, char value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Char |
value |
|
Returns
SetDecimal(Int32, Decimal)
Declaration
public abstract IFieldSet SetDecimal(int tag, decimal value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Decimal |
value |
|
Returns
SetEnum<T>(Int32, T)
Declaration
public abstract IFieldSet SetEnum<T>(int tag, T value)
where T : struct
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
T |
value |
|
Returns
Type Parameters
SetGroup(Int32, Int32)
Declaration
public abstract IGroup SetGroup(int tag, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
count |
|
Returns
SetInteger(Int32, Int32)
Declaration
public abstract IFieldSet SetInteger(int tag, int value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
value |
|
Returns
SetLong(Int32, Int64)
Declaration
public abstract IFieldSet SetLong(int tag, long value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int64 |
value |
|
Returns
SetShort(Int32, Int16)
Declaration
public abstract IFieldSet SetShort(int tag, short value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int16 |
value |
|
Returns
SetShort(Int32, Int32)
Declaration
public abstract IFieldSet SetShort(int tag, int value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
value |
|
Returns
SetSignedByte(Int32, Int32)
Declaration
public abstract IFieldSet SetSignedByte(int tag, int value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
value |
|
Returns
SetSignedByte(Int32, SByte)
Declaration
public abstract IFieldSet SetSignedByte(int tag, sbyte value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.SByte |
value |
|
Returns
SetString(Int32, String)
Declaration
public abstract IFieldSet SetString(int tag, string value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.String |
value |
|
Returns
SetToNull(Int32)
Declaration
public abstract IFieldSet SetToNull(int tag)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
Returns
SetUnsignedInteger(Int32, UInt32)
Declaration
public abstract IFieldSet SetUnsignedInteger(int tag, uint value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.UInt32 |
value |
|
Returns
SetUnsignedLong(Int32, UInt64)
Declaration
public abstract IFieldSet SetUnsignedLong(int tag, ulong value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.UInt64 |
value |
|
Returns
SetUnsignedShort(Int32, Int32)
Declaration
public abstract IFieldSet SetUnsignedShort(int tag, int value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.Int32 |
value |
|
Returns
SetUnsignedShort(Int32, UInt16)
Declaration
public abstract IFieldSet SetUnsignedShort(int tag, ushort value)
Parameters
Type |
Name |
Description |
System.Int32 |
tag |
|
System.UInt16 |
value |
|
Returns
ToFixString()
Declaration
public abstract string ToFixString()
Returns
Type |
Description |
System.String |
|
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A string that represents the current object.
|
ToString(Char)
Declaration
public abstract string ToString(char separator)
Parameters
Type |
Name |
Description |
System.Char |
separator |
|
Returns
Type |
Description |
System.String |
|
Wrap(MemoryPointer<Byte>, Boolean, Boolean)
Wraps message around the buffer.
Declaration
public abstract void Wrap(MemoryPointer<byte> buffer, bool encode = false, bool reset = true)
Parameters
Type |
Name |
Description |
MemoryPointer<System.Byte> |
buffer |
Data buffer.
|
System.Boolean |
encode |
If true, will set header fields and reset optional fields.
|
System.Boolean |
reset |
If true, will reset group position.
|
Implements
ICloneable