Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
variant_stream.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
fc
4
{
5
10
class
variant_stream
11
{
12
public
:
13
variant_stream
(
size_t
s
);
14
~variant_stream
();
15
17
int64_t
free
();
// number of spaces available
18
int64_t
claim
(
int64_t
num );
19
int64_t
publish
(
int64_t
pos );
20
int64_t
wait_free
();
// wait for free space
21
22
// producer/consumer api
23
variant
&
get
(
int64_t
pos );
24
26
int64_t
begin
();
// returns the first index ready to be read
27
int64_t
end
();
// returns the first index that cannot be read
28
int64_t
wait
();
// wait for variants to be posted
29
30
private
:
31
std::vector<fc::variant> _variants;
32
uint64_t
_read_pos;
33
uint64_t
_write_pos;
34
};
35
36
}
fc::variant_stream
Definition
variant_stream.hpp:11
fc::variant_stream::wait_free
int64_t wait_free()
fc::variant_stream::free
int64_t free()
fc::variant_stream::claim
int64_t claim(int64_t num)
fc::variant_stream::begin
int64_t begin()
fc::variant_stream::publish
int64_t publish(int64_t pos)
fc::variant_stream::end
int64_t end()
fc::variant_stream::get
variant & get(int64_t pos)
fc::variant_stream::~variant_stream
~variant_stream()
fc::variant_stream::wait
int64_t wait()
fc::variant_stream::variant_stream
variant_stream(size_t s)
fc::variant
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition
variant.hpp:191
fc
namespace sysio::chain
Definition
authority.cpp:3
int64_t
signed __int64 int64_t
Definition
stdint.h:135
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:136
s
char * s
Definition
yubihsm_pkcs11.c:524
libraries
fc
include
fc
rpc
variant_stream.hpp
Generated by
1.12.0