CatapultServer  v0.5.0.1 (Elephant)
PacketPayloadParser.h File Reference
Include dependency graph for PacketPayloadParser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::ionet
 
 catapult::ionet::detail
 

Macros

#define CATAPULT_LOG_EXCEEDS_REMAINING_BYTES(SIZE, MESSAGE)   CATAPULT_LOG(warning) << MESSAGE << " (" << SIZE << ") exceeds remaining bytes (" << remainingBytes << ")"
 
#define CATAPULT_LOG_DATA_SIZE_ERROR(SIZE, MESSAGE)   CATAPULT_LOG(warning) << "buffer data size (" << buffer.Size << ") " << MESSAGE << " (" << SIZE << ")"
 

Functions

template<typename TEntity , typename TIsValidPredicate >
bool catapult::ionet::detail::IsEntityValid (const TEntity &entity, TIsValidPredicate isValid)
 
template<typename TEntity , typename TIsValidPredicate >
std::vector< size_t > catapult::ionet::ExtractEntityOffsets (const RawBuffer &buffer, TIsValidPredicate isValid)
 
template<typename TEntity , typename TIsValidPredicate >
bool catapult::ionet::ContainsSingleEntity (const RawBuffer &buffer, TIsValidPredicate isValid)
 
template<typename TStructure >
size_t catapult::ionet::CountFixedSizeStructures (const RawBuffer &buffer)
 

Macro Definition Documentation

◆ CATAPULT_LOG_DATA_SIZE_ERROR

#define CATAPULT_LOG_DATA_SIZE_ERROR (   SIZE,
  MESSAGE 
)    CATAPULT_LOG(warning) << "buffer data size (" << buffer.Size << ") " << MESSAGE << " (" << SIZE << ")"

◆ CATAPULT_LOG_EXCEEDS_REMAINING_BYTES

#define CATAPULT_LOG_EXCEEDS_REMAINING_BYTES (   SIZE,
  MESSAGE 
)    CATAPULT_LOG(warning) << MESSAGE << " (" << SIZE << ") exceeds remaining bytes (" << remainingBytes << ")"