void RtlDynamicRowBuilder::swapWith(RtlDynamicRowBuilder & other) { size32_t savedMaxLength = maxLength; void * savedSelf = getUnfinalizedClear(); setown(other.getMaxLength(), other.getUnfinalizedClear()); other.setown(savedMaxLength, savedSelf); }
inline void deserialize(IRowInterfaces *rowif, size32_t memsz, const void *mem) { if (memsz) { RtlDynamicRowBuilder rowBuilder(rowif->queryRowAllocator()); //GH->NH This now has a higher overhead than you are likely to want at this point... CThorStreamDeserializerSource dsz(memsz,mem); size32_t size = rowif->queryRowDeserializer()->deserialize(rowBuilder,dsz); setown(rowBuilder.finalizeRowClear(size)); } else clear(); }
void rtlRowsAttr::setRow(IEngineRowAllocator * rowAllocator, const byte * _row) { setown(1, rowAllocator->appendRowOwn(NULL, 1, rowAllocator->linkRow(_row))); }
void rtlRowsAttr::set(size32_t _count, byte * * _rows) { setown(_count, rtlLinkRowset(_rows)); }