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

MarkAsBuffered() public method

public MarkAsBuffered ( long start, long end ) : void
start long
end long
return void
        public void MarkAsBuffered(long start, long end)
        {
            lock (this.WriteLock)
            {
                this.RangeCollection.AddRange(start, end);
                if (this.WritesWithoutIndexUpdate >= Constants.INDEX_UPDATE_WRITE_INTERVAL)
                {
                    this.UpdateIndexFile();
                    this.WritesWithoutIndexUpdate = 0;
                }
                else
                    this.WritesWithoutIndexUpdate++;
            }
        }