ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
Loading...
Searching...
No Matches
b2bits::nasdaq::moldudp64::SequencerImpl Struct Reference

MoldUDP64 sequencer implementation traits and operations. More...

Detailed Description

MoldUDP64 sequencer implementation traits and operations.

Provides the implementation-specific functionality required by the generic Sequencer template. This includes type definitions, memory management, and message cloning operations specific to MoldUDP64 protocol.

The SequencerImpl handles:

  • Message buffering for gap recovery
  • Message cloning for storage in memory pools
  • Memory pool configuration (chunk size and count)
See also
Sequencer
MessageBlock

#include <nasdaq/moldudp64/Sequencer.h>

Classes

struct  Traits
 Type traits for the sequencer. More...

Public Member Functions

 SequencerImpl (const SequencerParams &p)
 Construct the sequencer implementation.
const MessageBlockclone (const MessageBlock *msg, MemPool &pool)
 Clone a message into a memory pool.

Constructor & Destructor Documentation

◆ SequencerImpl()

b2bits::nasdaq::moldudp64::SequencerImpl::SequencerImpl ( const SequencerParams & p)
inline

Construct the sequencer implementation.

Initializes the sequencer with the provided parameters. Currently no initialization is needed beyond construction.

Parameters
pSequencer parameters (configuration options)

Member Function Documentation

◆ clone()

const MessageBlock * b2bits::nasdaq::moldudp64::SequencerImpl::clone ( const MessageBlock * msg,
MemPool & pool )
inline

Clone a message into a memory pool.

Creates a deep copy of a MoldUDP64 message in the provided memory pool. This is used to store messages that arrive out of order, enabling gap recovery and reassembly.

The method allocates space for the entire message (including header) and performs a byte-for-byte copy.

Parameters
msgPointer to the message to clone
poolMemory pool to allocate from
Returns
Pointer to the cloned message, or nullptr if allocation fails
Note
The clone includes the MessageBlock header and payload
The caller is responsible for managing the pool's lifetime

References clone(), and b2bits::nasdaq::moldudp64::MessageBlock::get_message_length().

Referenced by clone().


The documentation for this struct was generated from the following file: