[#25] Client: Implement Patch and Range methods
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
bff8d67867
commit
003b7fdfdd
51 changed files with 1338 additions and 137 deletions
|
@ -1,26 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace FrostFS.SDK.ClientV2;
|
||||
|
||||
internal sealed class WorkList
|
||||
{
|
||||
private readonly List<int> elements = [];
|
||||
|
||||
internal int Length
|
||||
{
|
||||
get { return elements.Count; }
|
||||
}
|
||||
|
||||
internal void Add(int element)
|
||||
{
|
||||
elements.Add(element);
|
||||
}
|
||||
|
||||
internal int Remove()
|
||||
{
|
||||
int last = elements.LastOrDefault();
|
||||
elements.RemoveAt(elements.Count - 1);
|
||||
return last;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue