mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +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;
|
||
|
}
|