framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
framework
protocol_buffers
varint.hpp
Go to the documentation of this file.
1
// Copyright (C) 2013 iwg molw5
2
// For conditions of distribution and use, see copyright notice in COPYING
3
13
#pragma once
14
15
#include <cassert>
16
17
#include <
framework/serializable/mutator_type.hpp
>
18
#include <
framework/serializable/inline_object.hpp
>
19
#include <
framework/serializable/common_macros.hpp
>
20
#include <
framework/serializable/containers/value.hpp
>
21
#include <
framework/serializable/utility/common.hpp
>
22
#include <
framework/protocol_buffers/base_types.hpp
>
23
#include <
framework/protocol_buffers/frame.hpp
>
24
25
namespace
framework
26
{
27
namespace
protocol_buffers
28
{
38
template
<
typename
T>
39
struct
varint
:
serializable::mutator_type
<T> {};
40
50
template
<
typename
T>
51
struct
zig_zag
:
serializable::mutator_type
<T> {};
52
63
template
<std::
size_t
Size,
typename
Output>
64
bool
fixed_length
(std::size_t value, Output&& out);
65
78
template
<std::
size_t
Size>
79
FRAMEWORK_ALWAYS_INLINE
80
bool
fixed_length
(std::size_t value,
char
* begin,
char
* end,
char
*& it);
81
}
82
}
83
84
#include <
framework/protocol_buffers/varint.inl
>
Generated on Wed Apr 10 2013 20:49:42 for framework by
1.8.3.1-20130402