Revision 0771dfd7 trunk/Pithos.Core/Agents/BlockExtensions.cs
b/trunk/Pithos.Core/Agents/BlockExtensions.cs | ||
---|---|---|
58 | 58 |
|
59 | 59 |
public static int Read(this FileInfo fileInfo,byte[] buffer,long offset,int count) |
60 | 60 |
{ |
61 |
if (offset <= 0)
|
|
61 |
if (offset < 0) |
|
62 | 62 |
throw new ArgumentOutOfRangeException("offset", offset, "The file offset can't be negative"); |
63 | 63 |
Contract.EndContractBlock(); |
64 | 64 |
//Open the stream only long enough to read a block |
Also available in: Unified diff