Rework some text related functions

This commit is contained in:
Georg Hagen
2025-03-01 20:00:27 +01:00
parent bfff861673
commit 0a027b8bb7
8 changed files with 43 additions and 43 deletions

View File

@@ -10,6 +10,7 @@
#include <iterator>
#include <initializer_list>
#include <cstddef>
#include <cinttypes>
#include <vector>
#include <stdexcept>
#include <string>
@@ -324,6 +325,10 @@ namespace OpenVulkano
std::swap(size, other.size);
}
std::span<const uint8_t> AsBytes() const noexcept
{
return { reinterpret_cast<const uint8_t*>(data), size * sizeof(T) };
}
private:
void Resize(size_t newSize)
{