mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
14 lines
197 B
C++
14 lines
197 B
C++
#pragma once
|
|
|
|
#include <DB/Core/Defines.h>
|
|
#include <string.h>
|
|
|
|
|
|
template <typename T>
|
|
inline T unalignedLoad(const void * address)
|
|
{
|
|
T res {};
|
|
memcpy(&res, address, sizeof(res));
|
|
return res;
|
|
}
|