zmqpp 4.1.2
C++ bindings for 0mq (libzmq)
Loading...
Searching...
No Matches
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
15namespace zmqpp
16{
17#if (ZMQ_VERSION_MAJOR >= 4)
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}
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
std::string encode(const std::string &raw_data)
Encode a binary string into a string using Z85 representation.
Definition z85.cpp:18
C++ wrapper around zmq.
Definition actor.cpp:30