OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
stream_serializer.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef OPENCBDC_TX_SRC_SERIALIZATION_STREAM_SERIALIZER_H_
7#define OPENCBDC_TX_SRC_SERIALIZATION_STREAM_SERIALIZER_H_
8
9#include "serializer.hpp"
10
11#include <ios>
12
13namespace cbdc {
19 public:
22 explicit stream_serializer(std::ios& s);
23
26 explicit operator bool() const final;
27
28 private:
29 std::ios& m_str;
30 };
31}
32
33#endif
Interface for serializing objects into and out of raw bytes representations.
Implementation of serializer for std::ios.
stream_serializer(std::ios &s)
Constructor.