diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-11 00:32:49 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | f011d871ef3af26c8f4e19de2c8d781c601ceffb (patch) | |
tree | ac3611e6fa054cc0f8870aad524b263ff917057f /asl/io.hpp | |
parent | e020805cb140ed98d09e606a867b910fce78ad15 (diff) |
Add console printing
Diffstat (limited to 'asl/io.hpp')
-rw-r--r-- | asl/io.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
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
|