OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
ISbeFieldDecoder Class Referenceabstract

Public Member Functions

virtual ~ISbeFieldDecoder () ONIXS_FIXENGINE_DEFAULT
virtual size_t decode (SbeFieldDecoderOutput output, unsigned version, const void *data, size_t available)=0

Detailed Description

The interface must be implemented by the custom decoder that decodes a FIX field.

The decoder is attached to the particular field during the ISbeCustomCoderLibrary::queryDecoder.

Definition at line 821 of file SbeCustomization.h.

Constructor & Destructor Documentation

◆ ~ISbeFieldDecoder()

virtual ~ISbeFieldDecoder ( )
virtual

The destructor.

Member Function Documentation

◆ decode()

virtual size_t decode ( SbeFieldDecoderOutput output,
unsigned version,
const void * data,
size_t available )
pure virtual

Decode data for the field.

This method is used to read wire-level data and convert it into the FIX field value. The core decoder calls it if the user code provided the custom decoder for the particular FIX field.

Parameters
outputThe destination for the decoded data.
versionThe version of the message being decoded.
dataThe wire-level data.
availableThe number of wire-level bytes available to analyze.
Returns
The number of used bytes.