WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
pack.h File Reference
#include <msgpack.hpp>
#include <string>
#include <cstdint>
#include <spdlog/logger.h>
#include <utf8.h>
#include "webcface/common/val_adaptor.h"
#include "./base.h"
Include dependency graph for pack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  webcface
 
namespace  webcface::message
 

Functions

std::string messageTrace (const std::string &message)
 バイナリを16進数の文字列に変換
 
std::vector< std::pair< int, std::shared_ptr< void > > > unpack (const std::string &message, const std::shared_ptr< spdlog::logger > &logger)
 msgpackのメッセージをパースし返す
 
template<typename T >
std::string packSingle (const T &obj)
 メッセージ1つを要素数2の配列としてシリアル化
 
template<typename T >
void pack (std::stringstream &buffer, int &len, const T &obj)
 メッセージをシリアル化しbufferに追加
 
std::string packDone (std::stringstream &buffer, int len)