Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::StringViewStreamBuf Class Reference

streambuf adapter over csv::string_view with no data copy. More...

#include <string_view_stream.hpp>

Inherits std::streambuf.

Public Member Functions

 StringViewStreamBuf (csv::string_view view)
 

Protected Member Functions

std::streamsize xsgetn (char *s, std::streamsize count) override
 
pos_type seekoff (off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which=std::ios_base::in) override
 
pos_type seekpos (pos_type pos, std::ios_base::openmode which=std::ios_base::in) override
 

Detailed Description

streambuf adapter over csv::string_view with no data copy.

The underlying memory must remain valid and immutable for the entire lifetime of this stream object.

Definition at line 17 of file string_view_stream.hpp.

Constructor & Destructor Documentation

◆ StringViewStreamBuf()

csv::internals::StringViewStreamBuf::StringViewStreamBuf ( csv::string_view  view)
inlineexplicit

Definition at line 19 of file string_view_stream.hpp.

Member Function Documentation

◆ seekoff()

pos_type csv::internals::StringViewStreamBuf::seekoff ( off_type  off,
std::ios_base::seekdir  dir,
std::ios_base::openmode  which = std::ios_base::in 
)
inlineoverrideprotected

Definition at line 36 of file string_view_stream.hpp.

◆ seekpos()

pos_type csv::internals::StringViewStreamBuf::seekpos ( pos_type  pos,
std::ios_base::openmode  which = std::ios_base::in 
)
inlineoverrideprotected

Definition at line 70 of file string_view_stream.hpp.

◆ xsgetn()

std::streamsize csv::internals::StringViewStreamBuf::xsgetn ( char s,
std::streamsize  count 
)
inlineoverrideprotected

Definition at line 26 of file string_view_stream.hpp.


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