zmqpp
4.1.2
C++ bindings for 0mq (libzmq)
src
zmqpp
z85.hpp
Go to the documentation of this file.
1
/*
2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
*
6
* This file is part of zmqpp.
7
* Copyright (c) 2011-2015 Contributors as noted in the AUTHORS file.
8
*/
9
10
#pragma once
11
#include <string>
12
#include <vector>
13
#include <zmq.h>
14
15
namespace
zmqpp
16
{
17
#if (ZMQ_VERSION_MAJOR >= 4)
18
21
namespace
z85
22
{
29
std::string
encode
(
const
std::string &raw_data);
30
38
std::string
encode
(
const
uint8_t *data,
size_t
size);
39
45
std::vector<uint8_t>
decode
(
const
std::string &
string
);
46
}
47
#endif
48
49
}
zmqpp
C++ wrapper around zmq.
Definition:
actor.cpp:30
zmqpp::z85::encode
std::string encode(const std::string &raw_data)
Encode a binary string into a string using Z85 representation.
Definition:
z85.cpp:18
zmqpp::z85::decode
std::vector< uint8_t > decode(const std::string &string)
Decode a Z85 encoded string into a binary blob represented as a vector.
Definition:
z85.cpp:34
Generated on Thu Dec 24 2020 14:33:25 for zmqpp by
1.8.20