From f011d871ef3af26c8f4e19de2c8d781c601ceffb Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 11 Oct 2024 00:32:49 +0200 Subject: Add console printing --- asl/io.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 asl/io.hpp (limited to 'asl/io.hpp') diff --git a/asl/io.hpp b/asl/io.hpp new file mode 100644 index 0000000..79c70c2 --- /dev/null +++ b/asl/io.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "asl/integers.hpp" +#include "asl/utility.hpp" + +namespace asl +{ + +class writer +{ +public: + writer() = default; + ASL_DELETE_COPY_MOVE(writer); + virtual ~writer() = default; + + // @Todo Use string view, or span of bytes? + virtual void write(const char* str, int64_t len) = 0; +}; + +} // namespace asl -- cgit