all: more assorted cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2024-02-09 14:48:47 +01:00
parent 25aa0e2e46
commit ae6d3b9bff
12 changed files with 98 additions and 36 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ public: // raw access
// like C++20 std::span
pointer data() const noexcept { return ptr; }
pointer data(size_t bytes) const { return raw_bytes(bytes); } // UPX extra
size_type size() const noexcept { return size_bytes() / sizeof(element_type); }
size_type size() const { return size_bytes() / sizeof(element_type); }
size_type size_bytes() const {
assertInvariants();
if __acc_cte (!configRequirePtr && ptr == nullptr)