55425 {
55426 D_ASSERT(str.GetSize() <= SORT_KEY::INLINE_LENGTH);
55427 auto &sort_key = static_cast<SORT_KEY &>(*this);
55428 for (idx_t i = 0; i < SORT_KEY::PARTS; i++) {
55429 (&sort_key.part0)[i] = 0;
55430 }
55431
55432 if (SORT_KEY::INLINE_LENGTH <= string_t::INLINE_LENGTH) {
55433 memcpy(&sort_key.part0, str.GetPrefix(), SORT_KEY::INLINE_LENGTH);
55434 } else if (str.IsInlined()) {
55435 memcpy(&sort_key.part0, str.GetPrefix(), string_t::INLINE_LENGTH);
55436 } else {
55437 FastMemcpy(&sort_key.part0, str.GetPointer(), str.GetSize());
55438 }
55439
55440
55441
55442
55443 ByteSwap();
55444 }
void FastMemcpy(void *dest, const void *src, const size_t size)
Definition duckdb.cpp:35899