framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | List of all members
framework::protocol_buffers::max_size_frame Class Reference

Size frame. More...

#include <frame.hpp>

Inheritance diagram for framework::protocol_buffers::max_size_frame:
framework::protocol_buffers::size_frame

Public Types

using pos_type = std::size_t
 Iterator position type.
 

Additional Inherited Members

- Private Types inherited from framework::protocol_buffers::size_frame
using pos_type = std::size_t
 Iterator position type.
 
- Private Member Functions inherited from framework::protocol_buffers::size_frame
FRAMEWORK_ALWAYS_INLINE bool write (char const *, std::size_t n)
 Write bytes.
 
template<std::size_t N>
FRAMEWORK_ALWAYS_INLINE bool write (char const *)
 Write bytes.
 
FRAMEWORK_ALWAYS_INLINE bool seekp (pos_type pos)
 Seek to position. More...
 
FRAMEWORK_ALWAYS_INLINE std::size_t tellp () const
 Output iterator position.
 
FRAMEWORK_ALWAYS_INLINE void skip (std::size_t n)
 Skip bytes. More...
 
FRAMEWORK_ALWAYS_INLINE operator std::size_t () const
 Size conversion operator. More...
 

Detailed Description

Size frame.

Provides a trivial stream implementation suitable for extracting the maximum serialized size of an object. This operation is typically much faster than computing the precise size of the object.

Note
Public inheritance is not desirable here - conversion to size_frame discards information.

The documentation for this class was generated from the following file: