forwardEncode Method (Message, Int32, Int32, Byte[], Int32)   Table of ContentFinalize Method forward
Encoder.Encode Method (Message, Int32, Int32, Byte[], Int32, UInt32)
Encodes the given FIX message into a SBE stream.
Encodes the given FIX message into a SBE stream.

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 uint Encode(
	Message fixMessage,
	int templateId,
	int version,
	byte[] buffer,
	int offset,
	out uint rootBlockLength
)

Parameters

fixMessage
Type: FIXForge.NET.FIX.Message
Source FIX message to be encoded.
templateId
Type: System.Int32
SBE Template Identifier which uniquely describes the encoding/decoding rules.
version
Type: System.Int32
Version of the template.
buffer
Type: System.Byte[]
Supplied buffer that will contain the SBE stream chunk.
offset
Type: System.Int32
The index in the buffer at which encoding begins.
rootBlockLength
Type: System.UInt32
Size of root block, used for the encoded message.

Return Value

Type: UInt32
The size of the entire encoded SBE message.
See Also