Revision 922c6aff trunk/Pithos.Core/Agents/BlockExtensions.cs

b/trunk/Pithos.Core/Agents/BlockExtensions.cs
56 56
    {
57 57
        
58 58

  
59
        public static int Read(this FileInfo fileInfo,byte[] buffer,int offset,int count)
60
        {            
59
        public static int Read(this FileInfo fileInfo,byte[] buffer,long offset,int count)
60
        {
61
            if (offset <= 0)
62
                throw new ArgumentOutOfRangeException("offset", offset, "The file offset can't be negative");
63
            Contract.EndContractBlock();
61 64
            //Open the stream only long enough to read a block
62 65
            using (var stream = fileInfo.OpenRead())
63 66
            {

Also available in: Unified diff