[*] AuByteBuffers should be able to .Write<std::string_view>()
This commit is contained in:
parent
6317a5631d
commit
c3a986495c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user