summaryrefslogtreecommitdiff
path: root/utf/src/utf32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utf/src/utf32.cc')
-rw-r--r--utf/src/utf32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf/src/utf32.cc b/utf/src/utf32.cc
index cfa29b6..e33b0b4 100644
--- a/utf/src/utf32.cc
+++ b/utf/src/utf32.cc
@@ -12,7 +12,7 @@ inline bool valid_codepoint(uint32_t c) {
} // namespace
-uint32_t read32be(std::string_view data, std::size_t& offset) {
+uint32_t read32be(std::span<uint8_t const> data, std::size_t& offset) {
if (offset > data.size() || data.size() - offset < 4)
return NEED_MORE;
uint32_t c = static_cast<uint32_t>(data[offset]) << 24
@@ -26,7 +26,7 @@ uint32_t read32be(std::string_view data, std::size_t& offset) {
return INVALID;
}
-uint32_t read32le(std::string_view data, std::size_t& offset) {
+uint32_t read32le(std::span<uint8_t const> data, std::size_t& offset) {
if (offset > data.size() || data.size() - offset < 4)
return NEED_MORE;
uint32_t c = static_cast<uint32_t>(data[offset + 3]) << 24