mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 22:45:38 +00:00
DownloadFileAsync support for !CanSeek streams (like AES_IGE_Stream)
This commit is contained in:
parent
f22990cb58
commit
e51ea2441e
4 changed files with 37 additions and 24 deletions
|
|
@ -540,6 +540,9 @@ j4WcDuXc2CTHgH8gFTNhp/Y8/SpDOhvn9QIDAQAB
|
|||
else { prevBytes = new byte[32]; Array.Copy(iv, 0, prevBytes, 16, 16); Array.Copy(iv, 16, prevBytes, 0, 16); }
|
||||
}
|
||||
|
||||
public override bool CanSeek => false;
|
||||
public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException();
|
||||
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
count = _innerStream.Read(buffer, offset, count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue