OnixS C++ eSpeed ITCH Market Data Handler 1.7.3
API documentation
Loading...
Searching...
No Matches
Memory.h File Reference

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

◆ advanceBackByBytes()

template<typename Type>
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.

◆ advanceByBytes()

template<typename Type>
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.

◆ byteDistance()

template<typename Left, typename Right>
ptrdiff_t byteDistance ( Left * left,
Right * right )
inline

Returns distance in bytes between two pointers.

Definition at line 136 of file Memory.h.

◆ toByteBlock() [1/2]

template<typename Type>
const Byte * toByteBlock ( const Type * ptr)
inline

Reinterprets pointer to one referencing to byte block.

Definition at line 82 of file Memory.h.

◆ toByteBlock() [2/2]

template<typename Type>
Byte * toByteBlock ( Type * ptr)
inline

Reinterprets pointer to one referencing to byte block.

Definition at line 65 of file Memory.h.

◆ toOpaquePtr() [1/2]

template<typename Type>
const void * toOpaquePtr ( const Type * ptr)
inline

Makes pointer as opaque one.

Definition at line 51 of file Memory.h.

◆ toOpaquePtr() [2/2]

template<typename Type>
void * toOpaquePtr ( Type * ptr)
inline

Makes pointer as opaque one.

Definition at line 39 of file Memory.h.

Variable Documentation

◆ Byte

Alias for Byte.

Definition at line 30 of file Memory.h.