コード例 #1
0
ファイル: FileSegmentSearch.cs プロジェクト: ycccq/TailBlazer
 public FileSegmentSearch(FileSegment segment, FileSegmentSearchResult result)
 {
     Key      = segment.Key;
     Segment  = segment;
     Status   = FileSegmentSearchStatus.Complete;
     _matches = new ImmutableArray <long>(result.Indicies);
 }
コード例 #2
0
ファイル: FileSegmentSearch.cs プロジェクト: ycccq/TailBlazer
 public FileSegmentSearch(FileSegmentSearch segmentSearch, FileSegmentSearchResult result)
 {
     //this can only be the tail as the tail will continue to grow
     Key      = segmentSearch.Key;
     Segment  = new FileSegment(segmentSearch.Segment, result.End);
     Status   = FileSegmentSearchStatus.Complete;
     _matches = segmentSearch._matches.Add(result.Indicies);
 }