MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / load

Function load

src/Compression/CompressionCodecT64.cpp:341–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340template <typename T>
341void load(const char * src, T * buf, UInt32 tail = 64)
342{
343 if constexpr (std::endian::native == std::endian::little)
344 {
345 memcpy(buf, src, tail * sizeof(T));
346 }
347 else
348 {
349 /// Since the algorithm uses little-endian integers, data is loaded
350 /// as little-endian types on big-endian machine (s390x, etc).
351 for (UInt32 i = 0; i < tail; ++i)
352 {
353 buf[i] = unalignedLoadLittleEndian<T>(src + i * sizeof(T));
354 }
355 }
356}
357
358template <typename T>
359void store(const T * buf, char * dst, UInt32 tail = 64)

Callers 15

IniFileConfigurationMethod · 0.85
loadMethod · 0.85
loadMethod · 0.85
JSONConfigurationMethod · 0.85
loadMethod · 0.85
XMLConfigurationMethod · 0.85
loadMethod · 0.85
HTMLFormMethod · 0.85
loadMethod · 0.85
mainMethod · 0.85
mainMethod · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected