WPILibC++ 2024.3.2
wpi::raw_istream Class Referenceabstract

#include <wpi/raw_istream.h>

Inheritance diagram for wpi::raw_istream:
wpi::raw_fd_istream wpi::raw_mem_istream wpi::raw_socket_istream

Public Member Functions

 raw_istream ()=default
 
virtual ~raw_istream ()=default
 
raw_istreamread (char &c)
 
raw_istreamread (unsigned char &c)
 
raw_istreamread (signed char &c)
 
raw_istreamread (void *data, size_t len)
 
size_t readsome (void *data, size_t len)
 
raw_istreamreadinto (SmallVectorImpl< char > &buf, size_t len)
 
raw_istreamreadinto (SmallVectorImpl< uint8_t > &buf, size_t len)
 
raw_istreamreadinto (std::vector< char > &buf, size_t len)
 
raw_istreamreadinto (std::vector< uint8_t > &buf, size_t len)
 
raw_istreamreadinto (std::string &buf, size_t len)
 
std::string_view getline (SmallVectorImpl< char > &buf, int maxLen)
 
virtual void close ()=0
 
virtual size_t in_avail () const =0
 
size_t read_count () const
 
bool has_error () const
 
void clear_error ()
 
 raw_istream (const raw_istream &)=delete
 
raw_istreamoperator= (const raw_istream &)=delete
 

Protected Member Functions

void error_detected ()
 
void set_read_count (size_t count)
 

Constructor & Destructor Documentation

◆ raw_istream() [1/2]

wpi::raw_istream::raw_istream ( )
default

◆ ~raw_istream()

virtual wpi::raw_istream::~raw_istream ( )
virtualdefault

◆ raw_istream() [2/2]

wpi::raw_istream::raw_istream ( const raw_istream )
delete

Member Function Documentation

◆ clear_error()

void wpi::raw_istream::clear_error ( )
inline

◆ close()

virtual void wpi::raw_istream::close ( )
pure virtual

◆ error_detected()

void wpi::raw_istream::error_detected ( )
inlineprotected

◆ getline()

std::string_view wpi::raw_istream::getline ( SmallVectorImpl< char > &  buf,
int  maxLen 
)

◆ has_error()

bool wpi::raw_istream::has_error ( ) const
inline

◆ in_avail()

virtual size_t wpi::raw_istream::in_avail ( ) const
pure virtual

◆ operator=()

raw_istream & wpi::raw_istream::operator= ( const raw_istream )
delete

◆ read() [1/4]

raw_istream & wpi::raw_istream::read ( char &  c)
inline

◆ read() [2/4]

raw_istream & wpi::raw_istream::read ( signed char &  c)
inline

◆ read() [3/4]

raw_istream & wpi::raw_istream::read ( unsigned char &  c)
inline

◆ read() [4/4]

raw_istream & wpi::raw_istream::read ( void *  data,
size_t  len 
)
inline

◆ read_count()

size_t wpi::raw_istream::read_count ( ) const
inline

◆ readinto() [1/5]

raw_istream & wpi::raw_istream::readinto ( SmallVectorImpl< char > &  buf,
size_t  len 
)
inline

◆ readinto() [2/5]

raw_istream & wpi::raw_istream::readinto ( SmallVectorImpl< uint8_t > &  buf,
size_t  len 
)
inline

◆ readinto() [3/5]

raw_istream & wpi::raw_istream::readinto ( std::string &  buf,
size_t  len 
)
inline

◆ readinto() [4/5]

raw_istream & wpi::raw_istream::readinto ( std::vector< char > &  buf,
size_t  len 
)
inline

◆ readinto() [5/5]

raw_istream & wpi::raw_istream::readinto ( std::vector< uint8_t > &  buf,
size_t  len 
)
inline

◆ readsome()

size_t wpi::raw_istream::readsome ( void *  data,
size_t  len 
)
inline

◆ set_read_count()

void wpi::raw_istream::set_read_count ( size_t  count)
inlineprotected

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