コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 public override void WriteBlock(byte[] data, int startIndex, int length)
 {
     writeInvoker.Invoke(() => base.WriteBlock(data, startIndex, length));
 }
コード例 #4
0
 public override void WriteFrame(bool isKeyFrame, byte[] frameData, int startIndex, int length)
 {
     writeInvoker.Invoke(() => base.WriteFrame(isKeyFrame, frameData, startIndex, length));
 }