コード例 #1
0
void RtlDynamicRowBuilder::swapWith(RtlDynamicRowBuilder & other)
{
    size32_t savedMaxLength = maxLength;
    void * savedSelf = getUnfinalizedClear();
    setown(other.getMaxLength(), other.getUnfinalizedClear());
    other.setown(savedMaxLength, savedSelf);
}
コード例 #2
0
ファイル: thmem.hpp プロジェクト: afishbeck/HPCC-Platform
 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();
 }
コード例 #3
0
void rtlRowsAttr::setRow(IEngineRowAllocator * rowAllocator, const byte * _row)
{
    setown(1, rowAllocator->appendRowOwn(NULL, 1, rowAllocator->linkRow(_row)));
}
コード例 #4
0
void rtlRowsAttr::set(size32_t _count, byte * * _rows)
{
    setown(_count, rtlLinkRowset(_rows));
}