From 35a996490200126e72775398fa3d6daa0ec4f435 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 13 Nov 2024 00:01:06 +0100 Subject: Introduce byte, use span on io Writer --- asl/io.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/io.hpp') 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) = 0; }; } // namespace asl -- cgit