[*] AuByteBuffers should be able to .Write<std::string_view>()

This commit is contained in:
Reece Wilson 2023-04-29 07:50:56 +01:00
parent 6317a5631d
commit c3a986495c

View File

@ -94,6 +94,12 @@ namespace Aurora::Memory
Write(in.data(), in.size());
return !this->flagWriteError;
}
else if constexpr (AuIsSame_v<AuRemoveReference_t<T>, std::string_view>)
{
Write<AuUInt32>(AuUInt32(in.size()));
Write(in.data(), in.size());
return !this->flagWriteError;
}
}
auto skipped = Write(&in, sizeof(T));