meta: add c++ wrapper of core module
This commit is contained in:
23
core-mm/include/blue/core/stringstream.hpp
Normal file
23
core-mm/include/blue/core/stringstream.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user