proxygen
folly::io::detail::CursorStringAppender Class Reference

#include <Cursor-inl.h>

Public Member Functions

void append (ByteRange bytes)
 
std::string extractString ()
 

Private Attributes

std::string str_
 

Detailed Description

Definition at line 26 of file Cursor-inl.h.

Member Function Documentation

void folly::io::detail::CursorStringAppender::append ( ByteRange  bytes)
inline

Definition at line 28 of file Cursor-inl.h.

References folly::Range< Iter >::data(), folly::Range< Iter >::size(), and str_.

28  {
29  str_.append(reinterpret_cast<char const*>(bytes.data()), bytes.size());
30  }
std::string folly::io::detail::CursorStringAppender::extractString ( )
inline

Definition at line 31 of file Cursor-inl.h.

References folly::gen::move, and str_.

Referenced by folly::io::detail::CursorBase< Derived, BufType >::readWhile().

31  {
32  return std::move(str_);
33  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

std::string folly::io::detail::CursorStringAppender::str_
private

Definition at line 36 of file Cursor-inl.h.

Referenced by append(), and extractString().


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