MCPcopy Create free account
hub / github.com/catboost/catboost / CopyPartChunk

Method CopyPartChunk

util/generic/bitmap.h:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 static inline TTargetChunk CopyPartChunk(const TSourceChunk* source, size_t count) {
98 Y_ASSERT(count <= BLOCK_SIZE);
99 TCnv c;
100 c.BigData = 0;
101#if defined(_big_endian_)
102 ::ReverseCopy(source, source + count, c.SmallData);
103#else
104 ::Copy(source, source + count, c.SmallData);
105#endif
106 return c.BigData;
107 }
108
109 static inline void Copy(TTargetChunk* target, size_t targetSize, const TSourceChunk* source, size_t sourceSize) {
110 Y_ASSERT(targetSize * BLOCK_SIZE >= sourceSize);

Callers

nothing calls this directly

Calls 2

ReverseCopyFunction · 0.85
CopyFunction · 0.70

Tested by

no test coverage detected