diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-11-13 00:01:06 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 35a996490200126e72775398fa3d6daa0ec4f435 (patch) | |
tree | 065bc639ff3a2bd4e06e63b2a6c6255f509ddbb0 /asl/io.hpp | |
parent | ac47be51b79f4c3e49656870e135453eefe759ea (diff) |
Introduce byte, use span<byte> on io Writer
Diffstat (limited to 'asl/io.hpp')
-rw-r--r-- | asl/io.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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
|