proxygen
|
#include <Cursor.h>
Public Member Functions | |
QueueAppender (IOBufQueue *queue, std::size_t growth) | |
void | reset (IOBufQueue *queue, std::size_t growth) |
uint8_t * | writableData () |
size_t | length () |
void | append (size_t n) |
void | ensure (size_t n) |
template<class T > | |
std::enable_if< std::is_arithmetic< T >::value >::type | write (T value) |
size_t | pushAtMost (const uint8_t *buf, size_t len) |
void | insert (std::unique_ptr< folly::IOBuf > buf) |
void | insert (const folly::IOBuf &buf) |
Public Member Functions inherited from folly::io::detail::Writable< QueueAppender > | |
std::enable_if< std::is_arithmetic< T >::value >::type | write (T value) |
void | writeBE (T value) |
void | writeLE (T value) |
void | push (const uint8_t *buf, size_t len) |
void | push (ByteRange buf) |
void | push (Cursor cursor, size_t len) |
size_t | pushAtMost (ByteRange buf) |
size_t | pushAtMost (Cursor cursor, size_t len) |
Private Member Functions | |
FOLLY_NOINLINE void | ensureSlow (size_t n) |
template<class T > | |
std::enable_if< std::is_arithmetic< T >::value >::type FOLLY_NOINLINE | writeSlow (T value) |
Private Attributes | |
folly::IOBufQueue::WritableRangeCache | queueCache_ {nullptr} |
size_t | growth_ {0} |
|
inline |
Create an Appender that writes to a IOBufQueue. When we allocate space in the queue, we grow no more than growth bytes at once (unless you call ensure() with a bigger value yourself).
Definition at line 1108 of file Cursor.h.
|
inline |
Definition at line 1124 of file Cursor.h.
Referenced by TEST_F().
|
inline |
Definition at line 1130 of file Cursor.h.
References folly::io::detail::CursorBase< Derived, BufType >::length().
Referenced by TEST_F().
|
inlineprivate |
Definition at line 1183 of file Cursor.h.
References FOLLY_NOINLINE, type, and value.
|
inline |
Definition at line 1169 of file Cursor.h.
References folly::gen::move.
Referenced by BENCHMARK(), and proxygen::compress::QPACKScheme::encode().
|
inline |
Definition at line 1175 of file Cursor.h.
References folly::IOBuf::clone().
|
inline |
Definition at line 1120 of file Cursor.h.
Referenced by TEST_F().
|
inline |
Definition at line 1148 of file Cursor.h.
References folly::io::detail::CursorBase< Derived, BufType >::length(), and min.
|
inline |
Definition at line 1111 of file Cursor.h.
|
inline |
Definition at line 1116 of file Cursor.h.
|
inline |
Definition at line 1137 of file Cursor.h.
References folly::io::detail::CursorBase< Derived, BufType >::length(), folly::storeUnaligned(), folly::T, and folly::value().
Referenced by folly::bser::bserEncode(), folly::bser::bserEncodeArray(), folly::bser::bserEncodeArraySimple(), folly::bser::bserEncodeInt(), folly::bser::bserEncodeObject(), folly::bser::bserEncodeString(), and runArithmeticBench().
|
inlineprivate |
Definition at line 1190 of file Cursor.h.
References folly::storeUnaligned(), folly::T, and folly::value().
|
private |