Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cuttlefish::SharedFDStreambuf Class Reference

#include <shared_fd_stream.h>

Inheritance diagram for cuttlefish::SharedFDStreambuf:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::SharedFDStreambuf:
Collaboration graph
[legend]

Public Member Functions

 SharedFDStreambuf (SharedFD shared_fd)
 

Private Member Functions

int underflow () override
 
std::streamsize xsgetn (char *dest, std::streamsize count) override
 
int overflow (int c) override
 
std::streamsize xsputn (const char *source, std::streamsize count) override
 
int pbackfail (int c) override
 

Private Attributes

SharedFD shared_fd_
 
std::unique_ptr< char[]> read_buffer_ = nullptr
 

Static Private Attributes

static constexpr const ptrdiff_t kUngetSize = 128
 
static constexpr const ptrdiff_t kBufferSize = 4096 + kUngetSize
 

Constructor & Destructor Documentation

◆ SharedFDStreambuf()

cuttlefish::SharedFDStreambuf::SharedFDStreambuf ( SharedFD  shared_fd)

Member Function Documentation

◆ overflow()

int cuttlefish::SharedFDStreambuf::overflow ( int  c)
overrideprivate

◆ pbackfail()

int cuttlefish::SharedFDStreambuf::pbackfail ( int  c)
overrideprivate

◆ underflow()

int cuttlefish::SharedFDStreambuf::underflow ( )
overrideprivate

◆ xsgetn()

std::streamsize cuttlefish::SharedFDStreambuf::xsgetn ( char *  dest,
std::streamsize  count 
)
overrideprivate

◆ xsputn()

std::streamsize cuttlefish::SharedFDStreambuf::xsputn ( const char *  source,
std::streamsize  count 
)
overrideprivate

Member Data Documentation

◆ kBufferSize

constexpr const ptrdiff_t cuttlefish::SharedFDStreambuf::kBufferSize = 4096 + kUngetSize
staticconstexprprivate

◆ kUngetSize

constexpr const ptrdiff_t cuttlefish::SharedFDStreambuf::kUngetSize = 128
staticconstexprprivate

◆ read_buffer_

std::unique_ptr<char[]> cuttlefish::SharedFDStreambuf::read_buffer_ = nullptr
private

◆ shared_fd_

SharedFD cuttlefish::SharedFDStreambuf::shared_fd_
private

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