add copy method to SegmentArrayWithData for on-air

(cherry picked from commit e3476cb)
This commit is contained in:
andrey zaytsev
2018-03-06 21:02:04 +03:00
parent e422aa6e40
commit 6253ae99cb
@@ -120,5 +120,13 @@ public class SegmentArrayWithData extends SegmentArray {
return newArray;
}
public SegmentArrayWithData copy() {
final SegmentArrayWithData sa = new SegmentArrayWithData();
sa.mySegmentCount = this.mySegmentCount;
sa.myStarts = this.myStarts.clone();
sa.myEnds = this.myEnds.clone();
sa.myData = this.myData.clone();
return sa;
}
}