Class Packet
Received packet.
Inheritance
System.Object
Packet
Namespace: OnixS.CmeMdHandler
Assembly: OnixS.CmeMdHandler.dll
Syntax
public class Packet : ICloneable
Constructors
Packet(IDecoder, Byte[])
Constructor.
Declaration
public Packet(IDecoder decoder, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
IDecoder | decoder | SBE decoder. |
System.Byte[] | buffer | Packet data. |
Properties
Current
Gets current message.
Declaration
public IMessage Current { get; }
Property Value
Type | Description |
---|---|
IMessage |
FeedType
Packet sequence number.
Declaration
public FeedType FeedType { get; }
Property Value
Type | Description |
---|---|
FeedType |
PacketLength
Packet data length.
Declaration
public int PacketLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PacketOffset
Packet data offset.
Declaration
public int PacketOffset { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ReceivingTimestamp
Packet receiving timestamp.
Declaration
public long ReceivingTimestamp { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
SendingTime
Packet sending timestamp.
Declaration
public ulong SendingTime { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
SeqNum
Packet sequence number.
Declaration
public uint SeqNum { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
Clone()
Copy packet data and return cloned object.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | Cloned object. |
GetRawData()
Returns packet raw data.
Declaration
public byte[] GetRawData()
Returns
Type | Description |
---|---|
System.Byte[] | Packet raw data |
MoveNext()
Moves to next message.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | True, if next message exist. |
Reset()
Reset message enumerator to initial state.
Declaration
public void Reset()
ToString()
Returns string representation of an object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of an object. |