|
proxygen
|
#include <File-inl.h>
Public Member Functions | |
| FileReader (File file, std::unique_ptr< IOBuf > buffer) | |
| template<class Body > | |
| bool | apply (Body &&body) const |
Public Member Functions inherited from folly::gen::GenImpl< ByteRange, FileReader > | |
| bool | apply (Handler &&handler) const |
| void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
| const Self & | self () const |
| Self & | self () |
Static Public Attributes | |
| static constexpr bool | infinite = false |
Static Public Attributes inherited from folly::gen::GenImpl< ByteRange, FileReader > | |
| static constexpr bool | infinite |
Private Attributes | |
| File | file_ |
| std::unique_ptr< IOBuf > | buffer_ |
Additional Inherited Members | |
Public Types inherited from folly::gen::GenImpl< ByteRange, FileReader > | |
| typedef ByteRange | ValueType |
| typedef std::decay< ByteRange >::type | StorageType |
Protected Member Functions inherited from folly::gen::GenImpl< ByteRange, FileReader > | |
| GenImpl ()=default | |
| GenImpl (GenImpl &&)=default | |
| GenImpl (const GenImpl &)=default | |
| GenImpl & | operator= (GenImpl &&)=default |
| GenImpl & | operator= (const GenImpl &)=default |
Definition at line 29 of file File-inl.h.
|
inline |
Definition at line 37 of file File-inl.h.
References buffer_, folly::File::fd(), file_, and fizz::detail::read().
|
private |
Definition at line 61 of file File-inl.h.
Referenced by apply(), folly::gen::detail::FileWriter::compose(), FileReader(), folly::gen::detail::FileWriter::FileWriter(), and folly::gen::detail::FileWriter::flushBuffer().
|
private |
Definition at line 60 of file File-inl.h.
Referenced by apply(), folly::gen::detail::FileWriter::compose(), and folly::gen::detail::FileWriter::write().
|
static |
Definition at line 57 of file File-inl.h.