proxygen
fizz::detail::WriterVector< bits24, T > Struct Template Reference

#include <Types-inl.h>

Public Member Functions

void writeVector (const std::vector< T > &data, folly::io::Appender &out)
 

Detailed Description

template<class T>
struct fizz::detail::WriterVector< bits24, T >

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

Member Function Documentation

template<class T >
void fizz::detail::WriterVector< bits24, T >::writeVector ( const std::vector< T > &  data,
folly::io::Appender out 
)
inline

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

References folly::pushmi::detail::t, fizz::detail::write(), and fizz::detail::writeBits24().

134  {
135  // First do a pass to compute the size of the data
136  size_t len = 0;
137  for (const auto& t : data) {
138  len += getSize<T>(t);
139  }
140 
141  writeBits24(len, out);
142  for (const auto& t : data) {
143  write(t, out);
144  }
145  }
void write(const T &in, folly::io::Appender &appender)
Definition: Types-inl.h:112
void writeBits24(T len, folly::io::Appender &out)
Definition: Types-inl.h:102

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