Decoder.TryDecode Method (Int32, Int32, UInt32, Byte[], Message) |
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,
Message message
)
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. - message
- Type: FIXForge.NET.FIX.Message
Reference to the decoded FIX Message.
Return Value
Type:
Boolean'true' if the given bytes could be decoded into a FIX message, otherwise - 'false'.
Exceptions See Also