-
Notifications
You must be signed in to change notification settings - Fork 0
/
NeedleInfo.cs
34 lines (30 loc) · 1.04 KB
/
NeedleInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Haystacks
{
/// <summary>
/// Information about a needle, corresponds to an entry in an index file.
/// </summary>
public struct NeedleInfo
{
/// <summary>
/// The number of the stack that the data was written into. The combination of NeedleNumber and StackNumber is unique.
/// </summary>
public int StackNumber { get; set; }
/// <summary>
/// A sequential number for the file / data once it has been inserted into a haystack.
/// </summary>
public int NeedleNumber { get; set; }
/// <summary>
/// The position within the stack that the data was written to, i.e. where the needle starts.
/// </summary>
public long StackOffset { get; set; }
/// <summary>
/// The size of the needle in bytes.
/// </summary>
public long NeedleSize { get; set; }
}
}