PutioFS.Core.LocalFileCache.CacheRange C# (CSharp) Method

CacheRange() public method

Return how much is buffered after offset.
public CacheRange ( long offset ) : long
offset long
return long
        public long CacheRange(long offset)
        {
            LongRange r = this.RangeCollection.BinarySearch(offset);
            if (r == null)
                return 0;
            else
                return r.End - offset;
        }