42 std::streamsize
xsputn(
const char_type* s, std::streamsize n)
override;
48 std::ios_base::seekdir way,
49 std::ios_base::openmode which = std::ios_base::in)
override;
52 pos_type
seekpos(pos_type pos, std::ios_base::openmode which = std::ios_base::in)
override;
60 explicit ispanstream(std::span<const std::byte> buffer);
std::istream & GetLineCrossPlatform(std::istream &is, std::string &line)
Reads a line from the input stream, handling line endings for different platforms.
ispanstream & operator=(const ispanstream &)=delete
ispanstream(const ispanstream &)=delete
ispanstream(ispanstream &&)=delete
~ispanstream() override
Destructor.
ispanstream & operator=(ispanstream &&)=delete
ispanstream(std::span< const std::byte > buffer)
Construct an ispanstream with a buffer.
Stream buffer based on a span.
std::streamsize xsputn(const char_type *s, std::streamsize n) override
Write a sequence of characters to the output buffer.
~spanstreambuf() override
Destructor.
spanstreambuf(std::span< const std::byte > buffer={})
Construct a spanstreambuf with an optional buffer.
pos_type seekoff(off_type off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in) override
Seek to an offset relative to way (begin/cur/end).
spanstreambuf & operator=(spanstreambuf &&)=delete
pos_type seekpos(pos_type pos, std::ios_base::openmode which=std::ios_base::in) override
Seek to an absolute position from the start of the buffer.
spanstreambuf(spanstreambuf &&)=delete
spanstreambuf & operator=(const spanstreambuf &)=delete
spanstreambuf(const spanstreambuf &)=delete