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

ResourceStream * ResVariant::createStream (  ) 

Create ResourceStream for resource. This may be usefull for large streams unpacked data, for example video and sound. Delete stream after use.

Definition at line 398 of file resources.cpp.

{
    if (refCnt || level)
        return new MemoryResourceStream(this);
    else
        return new UnpackedResourceStream(file->getStream(), offset, 
                packedSize);
}


Generated by  Doxygen 1.6.0   Back to index