util/SpanCast: add ReferenceAsBytes()
This commit is contained in:
committed by
Max Kellermann
parent
10940da381
commit
a073db1e52
@@ -105,7 +105,7 @@ template<typename T>
|
||||
static bool
|
||||
SendT(SocketDescriptor s, const T &buffer) noexcept
|
||||
{
|
||||
return Send(s, std::as_bytes(std::span{&buffer, 1}));
|
||||
return Send(s, ReferenceAsBytes(buffer));
|
||||
}
|
||||
|
||||
static bool
|
||||
|
||||
Reference in New Issue
Block a user