Logo Search packages:      
Sourcecode: einstein version File versions  Download package

void ResVariant::getData ( Buffer buffer  ) 

Return data in buffer

Parameters:
buffer buffer to store data.

Definition at line 388 of file resources.cpp.

References Buffer::getData(), and Buffer::setSize().

Referenced by Messages::loadFromResource().

{
    buffer.setSize(unpackedSize);
    if (! refCnt)
        file->load((char*)buffer.getData(), offset, packedSize, 
                unpackedSize, level);
    else
        memcpy((char*)buffer.getData(), data, unpackedSize);
}


Generated by  Doxygen 1.6.0   Back to index