util/SpanCast: add ReferenceAsBytes()
This commit is contained in:

committed by
Max Kellermann

parent
10940da381
commit
a073db1e52
@@ -51,7 +51,7 @@ public:
|
||||
*/
|
||||
template<typename T>
|
||||
void WriteT(const T &value) {
|
||||
Write(std::as_bytes(std::span{&value, 1}));
|
||||
Write(ReferenceAsBytes(value));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user