OnixS C++ eSpeed ITCH Market Data Handler  1.7.3
API documentation
Memory.h File Reference
#include <cstddef>
#include <OnixS/eSpeed/MarketData/Itch/Integral.h>

Go to the source code of this file.

Functions

template<typename Type >
void * toOpaquePtr (Type *ptr)
 
template<typename Type >
const void * toOpaquePtr (const Type *ptr)
 
template<typename Type >
BytetoByteBlock (Type *ptr)
 
template<typename Type >
const BytetoByteBlock (const Type *ptr)
 
template<typename Type >
Type * advanceByBytes (Type *pointer, ptrdiff_t distance)
 
template<typename Type >
Type * advanceBackByBytes (Type *pointer, ptrdiff_t distance)
 
template<typename Left , typename Right >
ptrdiff_t byteDistance (Left *left, Right *right)
 

Variables

ONIXS_ESPEED_ITCH_NAMESPACE_BEGIN typedef UInt8 Byte
 

Function Documentation

Type* advanceBackByBytes ( Type *  pointer,
ptrdiff_t  distance 
)
inline

Returns pointer which is lower than given one to a given number of bytes.

Definition at line 117 of file Memory.h.

Type* advanceByBytes ( Type *  pointer,
ptrdiff_t  distance 
)
inline

Advances given pointer to a given offset (distance) in bytes.

Definition at line 98 of file Memory.h.

ptrdiff_t byteDistance ( Left *  left,
Right *  right 
)
inline

Returns distance in bytes between two pointers.

Definition at line 136 of file Memory.h.

Byte* toByteBlock ( Type *  ptr)
inline

Reinterprets pointer to one referencing to byte block.

Definition at line 65 of file Memory.h.

const Byte* toByteBlock ( const Type *  ptr)
inline

Reinterprets pointer to one referencing to byte block.

Definition at line 82 of file Memory.h.

void* toOpaquePtr ( Type *  ptr)
inline

Makes pointer as opaque one.

Definition at line 39 of file Memory.h.

const void* toOpaquePtr ( const Type *  ptr)
inline

Makes pointer as opaque one.

Definition at line 51 of file Memory.h.

Variable Documentation

Alias for Byte.

Definition at line 30 of file Memory.h.