proxygen
fizz::detail::Sizer< CertificateEntry > Struct Template Reference

#include <Types-inl.h>

Public Member Functions

template<class T >
size_t getSize (const CertificateEntry &entry)
 

Detailed Description

template<>
struct fizz::detail::Sizer< CertificateEntry >

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

Member Function Documentation

template<class T >
size_t fizz::detail::Sizer< CertificateEntry >::getSize ( const CertificateEntry entry)
inline

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

References fizz::CertificateEntry::cert_data, fizz::CertificateEntry::extensions, fizz::detail::getBufSize< bits24 >(), fizz::detail::getSize(), and uint16_t.

58  {
59  size_t len = 0;
60  len += getBufSize<bits24>(entry.cert_data);
61  len += sizeof(uint16_t);
62  for (const auto& ext : entry.extensions) {
63  len += detail::getSize(ext);
64  }
65  return len;
66  }
size_t getSize(const T &t)
Definition: Types-inl.h:43
size_t getBufSize< bits24 >(const Buf &buf)
Definition: Types-inl.h:38

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