feat(rpc): implement P2 S-RPC-01..03 Wire v1 binary codec and unary HTTP/1.1 RPC subsystem
This commit is contained in:
1 parent
691808eab6
commit
5184d1cf8c
11 files changed
+1778
-1
No files matched your search
@@ -188,7 +188,7 @@ public:
|
||||
return std::unexpected{bytes.error()};
|
||||
}
|
||||
std::array<std::byte, sizeof(T)> storage{};
|
||||
std::ranges::copy(*bytes, storage.begin());
|
||||
std::memcpy(storage.data(), bytes->data(), sizeof(T));
|
||||
T value = std::bit_cast<T>(storage);
|
||||
if (byteOrder != std::endian::native) {
|
||||
value = std::byteswap(value);
|
||||
|
||||
Reference in new issue
Block a user