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; }
public DiffData(EDiffAction type, int offset, ReadOnlyMemory <T> data) { this.type = type; this.offset = offset; this.data = data; }