Exemple #1
0
 public DiffNode(ReadOnlyMemory <T> data, int start, int end, EDiffAction type)
 {
     //startOffset = MathExt.Min(offset1, offset2);
     //endOffset = MathExt.Max(offset1, offset2);
     startOffset = start;
     endOffset   = end;
     this.data   = data.Slice(startOffset, Length);
     this.type   = type;
 }
Exemple #2
0
 public DiffData(EDiffAction type, int offset, ReadOnlyMemory <T> data)
 {
     this.type   = type;
     this.offset = offset;
     this.data   = data;
 }