cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
sharable_binary_header.h File Reference

Definition of SharableBinaryHeader struct. More...

#include <atomic>
#include <cassert>
#include <cstddef>
#include <cstdlib>
#include <limits>
#include <new>
#include "msgpack_rpc/messages/impl/sharable_binary_header_fwd.h"
Include dependency graph for sharable_binary_header.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  msgpack_rpc::messages::impl::SharableBinaryHeader
 Struct of headers of sharable binary data. More...

Namespaces

namespace  msgpack_rpc
 Namespace of cpp-msgpack-rpc library.
namespace  msgpack_rpc::messages
 Namespace of messages.
namespace  msgpack_rpc::messages::impl
 Namespace of internal implementations.

Functions

void msgpack_rpc::messages::impl::add_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept
 Add a reference count of a buffer of sharable binary data.
SharableBinaryHeadermsgpack_rpc::messages::impl::allocate_sharable_binary (std::size_t binary_size)
 Allocate a buffer of sharable binary data.
SharableBinaryHeadermsgpack_rpc::messages::impl::allocate_shared_binary ()
 Allocate a buffer of sharable binary data with automatic initial size.
char * msgpack_rpc::messages::impl::binary_buffer_of (SharableBinaryHeader *buffer) noexcept
 Get buffer of binary data from a buffer of sharable binary data.
void msgpack_rpc::messages::impl::deallocate_sharable_binary (SharableBinaryHeader *buffer) noexcept
 Deallocate a buffer of sharable binary data.
void msgpack_rpc::messages::impl::decrease_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept
 Decrease a reference count of a buffer of sharable binary data, and deallocate the buffer if possible.
void msgpack_rpc::messages::impl::enable_reference_count_of_sharable_binary (SharableBinaryHeader *buffer) noexcept
 Enable reference count of a buffer of sharable binary data.
SharableBinaryHeadermsgpack_rpc::messages::impl::expand_sharable_binary (SharableBinaryHeader *buffer, std::size_t required_size)
 Expand a buffer of sharable binary data.
std::atomic< int > & msgpack_rpc::messages::impl::reference_count_of (SharableBinaryHeader *buffer) noexcept
 Access the reference count of a buffer of sharable binary data.

Variables

constexpr std::size_t msgpack_rpc::messages::impl::SHARABLE_BINARY_ALIGNMENT = alignof(SharableBinaryHeader)
 Alignment of sharable binary data.

Detailed Description

Definition of SharableBinaryHeader struct.

Definition in file sharable_binary_header.h.