summaryrefslogtreecommitdiff
path: root/asl/io.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-13 00:01:06 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit35a996490200126e72775398fa3d6daa0ec4f435 (patch)
tree065bc639ff3a2bd4e06e63b2a6c6255f509ddbb0 /asl/io.hpp
parentac47be51b79f4c3e49656870e135453eefe759ea (diff)
Introduce byte, use span<byte> on io Writer
Diffstat (limited to 'asl/io.hpp')
-rw-r--r--asl/io.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/asl/io.hpp b/asl/io.hpp
index e7d1c9c..9c45624 100644
--- a/asl/io.hpp
+++ b/asl/io.hpp
@@ -2,6 +2,7 @@
#include "asl/integers.hpp"
#include "asl/utility.hpp"
+#include "asl/span.hpp"
namespace asl
{
@@ -13,8 +14,7 @@ public:
ASL_DELETE_COPY_MOVE(writer);
virtual ~writer() = default;
- // @Todo Use string view, or span of bytes?
- virtual void write(const char* str, isize_t len) = 0;
+ virtual void write(span<const byte>) = 0;
};
} // namespace asl