mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-25 00:15:15 +00:00
Resharper code cleanup
This commit is contained in:
@@ -84,14 +84,8 @@ namespace SharpCompress.Compressor.PPMd
|
||||
|
||||
public override long Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return position;
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
get { return position; }
|
||||
set { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
@@ -106,7 +100,7 @@ namespace SharpCompress.Compressor.PPMd
|
||||
int c;
|
||||
while (size < count && (c = modelH.decodeChar()) >= 0)
|
||||
{
|
||||
buffer[offset++] = (byte)c;
|
||||
buffer[offset++] = (byte) c;
|
||||
size++;
|
||||
}
|
||||
}
|
||||
@@ -115,7 +109,7 @@ namespace SharpCompress.Compressor.PPMd
|
||||
int c;
|
||||
while (size < count && (c = modelH.decodeChar(decoder)) >= 0)
|
||||
{
|
||||
buffer[offset++] = (byte)c;
|
||||
buffer[offset++] = (byte) c;
|
||||
size++;
|
||||
}
|
||||
}
|
||||
@@ -139,4 +133,4 @@ namespace SharpCompress.Compressor.PPMd
|
||||
model.EncodeBlock(stream, new MemoryStream(buffer, offset, count), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user