mChannel->mRecord->GetStoredContentLength(&mOldLength);
WriteStreamWrapper::WriteStreamWrapper(nsDiskCacheRecordChannel* aChannel,                                        nsIOutputStream *aBaseStream)   : mChannel(aChannel), mBaseStream(aBaseStream), mTotalSize(0){   NS_INIT_REFCNT();   NS_ADDREF(mChannel);}