proxygen
fizz::detail::Reader< Extension > Struct Template Reference

#include <Types-inl.h>

Public Member Functions

template<class T >
size_t read (Extension &extension, folly::io::Cursor &cursor)
 

Detailed Description

template<>
struct fizz::detail::Reader< Extension >

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

Member Function Documentation

template<class T >
size_t fizz::detail::Reader< Extension >::read ( Extension extension,
folly::io::Cursor cursor 
)
inline

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

References fizz::Extension::extension_data, fizz::Extension::extension_type, folly::io::detail::CursorBase< Derived, BufType >::readBE(), and type.

319  {
320  extension.extension_type = static_cast<ExtensionType>(
322  auto len = readBuf<uint16_t>(extension.extension_data, cursor);
323  return sizeof(ExtensionType) + len;
324  }
PskType type
ExtensionType
Definition: Types.h:95

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