diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
| commit | 6232d13f5321b87ddf12a1aa36b4545da45f173d (patch) | |
| tree | 23f3316470a14136debd9d02f9e920ca2b06f4cc /src/str_buffer.hh | |
Travel3: Simple image and video display site
Reads the images and videos from filesystem and builds a site in
memroy.
Diffstat (limited to 'src/str_buffer.hh')
| -rw-r--r-- | src/str_buffer.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/str_buffer.hh b/src/str_buffer.hh new file mode 100644 index 0000000..b791918 --- /dev/null +++ b/src/str_buffer.hh @@ -0,0 +1,14 @@ +#ifndef STR_BUFFER_HH +#define STR_BUFFER_HH + +#include "buffer.hh" + +#include <memory> +#include <string> +#include <string_view> + +std::unique_ptr<RoBuffer> make_strbuffer(std::string content); +std::unique_ptr<RoBuffer> make_strbuffer(std::string_view content); +std::unique_ptr<Buffer> make_strbuffer(std::shared_ptr<std::string> content); + +#endif // STR_BUFFER_HH |
