24 lines
396 B
C++
24 lines
396 B
C++
#ifndef BLUE_CORE_STRINGSTREAM_HPP_
|
|
#define BLUE_CORE_STRINGSTREAM_HPP_
|
|
|
|
#include <blue/core/stream.hpp>
|
|
|
|
namespace blue::core
|
|
{
|
|
class stringstream : public stream
|
|
{
|
|
public:
|
|
stringstream();
|
|
stringstream(char *buf, std::size_t max);
|
|
|
|
status reset();
|
|
status reset(char *buf, std::size_t max);
|
|
|
|
const char *get_ptr() const;
|
|
char *steal_ptr();
|
|
std::size_t get_length() const;
|
|
};
|
|
}
|
|
|
|
#endif
|