Utility.Skip uses seek

This commit is contained in:
diontools
2018-01-03 00:23:34 +09:00
parent 02f68b793c
commit 2fd9fe96ad

View File

@@ -141,6 +141,12 @@ namespace SharpCompress
public static void Skip(this Stream source, long advanceAmount)
{
if (source.CanSeek)
{
source.Position += advanceAmount;
return;
}
byte[] buffer = GetTransferByteArray();
try
{