public override void WriteFrame(bool isKeyFrame, byte[] frameData, int startIndex, int length) { Argument.IsNotNull(frameData, nameof(frameData)); Argument.IsNotNegative(startIndex, nameof(startIndex)); Argument.IsPositive(length, nameof(length)); Argument.ConditionIsMet(startIndex + length <= frameData.Length, "End offset exceeds the length of frame data."); writeInvoker.Invoke(() => base.WriteFrame(isKeyFrame, frameData, startIndex, length)); }
public override void WriteBlock(byte[] data, int startIndex, int length) { Argument.IsNotNull(data, nameof(data)); Argument.IsNotNegative(startIndex, nameof(startIndex)); Argument.IsPositive(length, nameof(length)); Argument.ConditionIsMet(startIndex + length <= data.Length, "End offset exceeds the length of data."); writeInvoker.Invoke(() => base.WriteBlock(data, startIndex, length)); }
public override void WriteBlock(byte[] data, int startIndex, int length) { writeInvoker.Invoke(() => base.WriteBlock(data, startIndex, length)); }
public override void WriteFrame(bool isKeyFrame, byte[] frameData, int startIndex, int length) { writeInvoker.Invoke(() => base.WriteFrame(isKeyFrame, frameData, startIndex, length)); }