forwardTryDecode Method (Int32, Int32, UInt32, Byte[], Message)   Table of ContentTryDecode Method (Int32, Int32, UInt32, Byte[], Int32, Int32, Message, UInt32)forward
Decoder.TryDecode Method (Int32, Int32, UInt32, Byte[], 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
C#
public bool TryDecode(
	int templateId,
	int version,
	uint rootBlockLength,
	byte[] buffer,
	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.
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
ExceptionCondition
EngineExceptionIf the decoding error is detected.
See Also