public override IRandomAccessStream CloneStream() { if (_accessMode == FileAccessMode.Read) { var newReadStream = Application.Context.ContentResolver.OpenInputStream(_fileUri); return(new FileRandomAccessStream(new SafStream(_fileUri, newReadStream))); } else { var rentedStream = _rentableStream.Rent(); return(new FileRandomAccessStream(new SafStream(_fileUri, rentedStream, _rentableStream))); } }
public override IRandomAccessStream CloneStream() { var rentedStream = _rentableStream.Rent(); return(new FileRandomAccessStream(new Native(_fileId, rentedStream, _rentableStream, _access))); }