forwardDecode Method (Int32, Int32, UInt32, Byte[], UInt32)   Table of ContentDispose Method forward
Decoder.Decode Method (Int32, Int32, UInt32, Byte[], Int32, Int32, 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.10.1.0
Syntax
C#
public Message Decode(
	int templateId,
	int version,
	uint rootBlockLength,
	byte[] buffer,
	int offset,
	int count,
	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.
numberOfDecodedBytes
Type: System.UInt32
Number of bytes that contained the encoded FIX Message.

Return Value

Type: Message
The decoded FIX message.
Exceptions
ExceptionCondition
EngineExceptionIf the message cannot be decoded.
See Also