OnixS C++ HKEX OMD-C Handler 1.0.0
API documentation
Loading...
Searching...
No Matches
BinaryMessage Class Reference

Public Types

typedef MessageSize BinarySize

Public Member Functions

 BinaryMessage () noexcept
 BinaryMessage (const void *data, MessageSize size) noexcept
 BinaryMessage (const BinaryMessage &other) noexcept
 operator bool () const noexcept
const void * binary () const noexcept
MessageSize binarySize () const noexcept
BinaryMessageoperator= (const BinaryMessage &other) noexcept

Additional Inherited Members

Protected Member Functions inherited from BinaryFields< BinaryMessage, MessageSize >
const SubMessage submessage (MessageSize offset, MessageSize size) const noexcept
FieldValue ordinary (MessageSize offset) const noexcept
const FieldValue & ordinaryRef (MessageSize offset) const noexcept
Enumeration::Enum enumeration (MessageSize offset) const noexcept
StrRef fixedStr (MessageSize offset) const noexcept

Detailed Description

Definition at line 129 of file BinaryMessage.h.

Member Typedef Documentation

◆ BinarySize

Length of message binary data.

Definition at line 136 of file BinaryMessage.h.

Constructor & Destructor Documentation

◆ BinaryMessage() [1/3]

BinaryMessage ( )
inlinenoexcept

Initializes blank instance referencing to nothing.

Definition at line 139 of file BinaryMessage.h.

◆ BinaryMessage() [2/3]

BinaryMessage ( const void * data,
MessageSize size )
inlinenoexcept

Initializes instance over given memory block.

Definition at line 147 of file BinaryMessage.h.

◆ BinaryMessage() [3/3]

BinaryMessage ( const BinaryMessage & other)
inlinenoexcept

Initializes instance as copy of the other one.

Definition at line 157 of file BinaryMessage.h.

Member Function Documentation

◆ binary()

const void * binary ( ) const
inlinenoexcept

Message content.

Definition at line 174 of file BinaryMessage.h.

◆ binarySize()

MessageSize binarySize ( ) const
inlinenoexcept

Size of message.

Definition at line 181 of file BinaryMessage.h.

◆ operator bool()

operator bool ( ) const
inlineexplicitnoexcept

Indicates whether instance refers to a valid message.

Definition at line 167 of file BinaryMessage.h.

◆ operator=()

BinaryMessage & operator= ( const BinaryMessage & other)
inlinenoexcept

Re-initializes instance as a copy of the other one.

Definition at line 189 of file BinaryMessage.h.