/// <summary> /// Append the given amount of data marshalled from the pointer P. /// </summary> public void Append(Time <TTime> absoluteTime, IntPtr p) { HoloDebug.Assert(!IsShut); HoloDebug.Assert(TimeIsAfterLast(absoluteTime)); _innerStream.Append(1, p); _times.Add(absoluteTime); Trim(); }
public override void CopyTo(Interval <TTime> sourceInterval, DenseSliceStream <TTime, TValue> destinationStream) { while (!sourceInterval.IsEmpty) { Slice <TTime, TValue> source = GetNextSliceAt(sourceInterval); destinationStream.Append(source); sourceInterval = sourceInterval.SubintervalStartingAt(source.Duration); } }