proxygen
fizz::detail::Writer< U > Struct Template Reference

#include <Types-inl.h>

Public Member Functions

template<class T >
void write (const typename std::enable_if< std::is_enum< T >::value &&std::is_same< U, T >::value, T >::type &in, folly::io::Appender &appender)
 
template<class T >
void write (const typename std::enable_if< std::is_unsigned< T >::value &&std::is_same< U, T >::value, T >::type &in, folly::io::Appender &appender)
 

Detailed Description

template<class U>
struct fizz::detail::Writer< U >

Definition at line 70 of file Types-inl.h.

Member Function Documentation

template<class U >
template<class T >
void fizz::detail::Writer< U >::write ( const typename std::enable_if< std::is_enum< T >::value &&std::is_same< U, T >::value, T >::type in,
folly::io::Appender appender 
)
inline

Definition at line 72 of file Types-inl.h.

References type, and folly::io::detail::Writable< Derived >::writeBE().

76  {
77  using UT = typename std::underlying_type<U>::type;
78  appender.writeBE<UT>(static_cast<UT>(in));
79  }
PskType type
void writeBE(T value)
Definition: Cursor.h:744
template<class U >
template<class T >
void fizz::detail::Writer< U >::write ( const typename std::enable_if< std::is_unsigned< T >::value &&std::is_same< U, T >::value, T >::type in,
folly::io::Appender appender 
)
inline

Definition at line 82 of file Types-inl.h.

References folly::io::detail::Writable< Derived >::writeBE().

86  {
87  appender.writeBE<U>(in);
88  }
void writeBE(T value)
Definition: Cursor.h:744

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