Decoder.TryDecode Method (Int32, Int32, UInt32, Byte[], Int32, Int32, Message, UInt32) |
Decodes the given SBE stream chunk into the corresponding FIX Message.
Namespace:
FIXForge.NET.FIX.SBE
Assembly:
FIXForge.NET.FIX.Engine-net-4.8_x64 (in FIXForge.NET.FIX.Engine-net-4.8_x64.dll) Version: 4.12.0.0
Syntax public bool TryDecode(
int templateId,
int version,
uint rootBlockLength,
byte[] buffer,
int offset,
int count,
Message message,
out uint numberOfDecodedBytes
)
Parameters
- templateId
- Type: System.Int32
SBE Template Identifier which uniquely describes the encoding/decoding rules. - version
- Type: System.Int32
Version of the template. - rootBlockLength
- Type: System.UInt32
Length of the root block. This value should be extracted from the message preamble, or from other source. - buffer
- Type: System.Byte[]
Supplied buffer that contains the SBE stream chunk. - offset
- Type: System.Int32
The index in the buffer at which decoding begins. - count
- Type: System.Int32
Number of bytes to analyze during the decoding. - message
- Type: FIXForge.NET.FIX.Message
Reference to the decoded FIX Message. - numberOfDecodedBytes
- Type: System.UInt32
Number of bytes that contained the encoded FIX Message.
Return Value
Type:
Boolean'true' if the given bytes could be decoded into a FIX message, otherwise - 'false'.
Exceptions See Also