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

Size frame. More...

#include <frame.hpp>

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

Public Types

using pos_type = std::size_t
 Iterator position type.
 

Public Member Functions

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 serialized size of an object.

Member Function Documentation

FRAMEWORK_ALWAYS_INLINE framework::protocol_buffers::size_frame::operator std::size_t ( ) const
inlineexplicit

Size conversion operator.

Returns
serialized object size
FRAMEWORK_ALWAYS_INLINE bool framework::protocol_buffers::size_frame::seekp ( pos_type  pos)
inline

Seek to position.

Sets the output iterator to the provided position. Note that the definition used here may not be compatible with that of basic_ostream::seekg.

Parameters
posnew output iterator position
Returns
true on success, false on failure
FRAMEWORK_ALWAYS_INLINE void framework::protocol_buffers::size_frame::skip ( std::size_t  n)
inline

Skip bytes.

Advances the iterator position by n bytes.


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