Vanetza
Loading...
Searching...
No Matches
byte_buffer_sink.hpp
1
#
ifndef
BYTE_BUFFER_SINK_HPP_XQSBHPDQ
2
#
define
BYTE_BUFFER_SINK_HPP_XQSBHPDQ
3
4
#
include
<
vanetza
/
common
/
byte_buffer
.
hpp
>
5
#
include
<
boost
/
iostreams
/
categories
.
hpp
>
6
#
include
<
ios
>
7
8
namespace
vanetza
9
{
10
11
class
byte_buffer_sink
12
{
13
public
:
14
typedef
char
char_type;
15
typedef
boost::iostreams::sink_tag category;
16
static_assert
(
sizeof
(
char_type
) ==
sizeof
(
ByteBuffer
::
value_type
),
17
"size mismatch of char_type and ByteBuffer::value_type"
);
18
19
byte_buffer_sink(ByteBuffer& buffer);
20
std::streamsize write(
const
char_type* s, std::streamsize n);
21
22
private
:
23
ByteBuffer& m_buffer;
24
};
25
26
}
// namespace vanetza
27
28
#
endif
/* BYTE_BUFFER_SINK_HPP_XQSBHPDQ */
vanetza::ChunkPacket
ChunckPacket is a packet consisting of several memory chunks.
Definition
chunk_packet.hpp:19
vanetza::ChunkPacket::operator[]
ByteBufferConvertible & operator[](OsiLayer ol)
Definition
chunk_packet.hpp:41
vanetza::CohesivePacket
Definition
cohesive_packet.hpp:16
vanetza::CohesivePacket::set_boundary
void set_boundary(OsiLayer, unsigned bytes)
Definition
cohesive_packet.cpp:51
vanetza::InputArchive
Definition
archives.hpp:17
vanetza::OutputArchive
Definition
archives.hpp:62
vanetza::byte_buffer_sink
Definition
byte_buffer_sink.hpp:12
vanetza::byte_buffer_source
Definition
byte_buffer_source.hpp:16
vanetza::btp::HeaderA
Definition
header.hpp:18
vanetza::btp::HeaderB
Definition
header.hpp:35
vanetza
common
byte_buffer_sink.hpp
Generated on
for Vanetza by
1.16.1