/// <summary> /// Add bytes to the processing queue. /// </summary> /// <param name="buffer">The buffer to process</param> public override void ProcessReceivedBytes(byte[] buffer, int start, int length) { try { mProcessStream.Write(buffer, 0, buffer.Length); } catch (IndexOutOfRangeException e) { Console.WriteLine(e.ToString()); } catch (InternalBufferOverflowException e) { Console.WriteLine(e.ToString()); } }
/// <summary> /// Add bytes to the processing queue. /// </summary> /// <param name="buffer">The buffer to process</param> public override void ProcessReceivedBytes(byte[] buffer, int start, int length) { mProcessStream.Write(buffer, 0, buffer.Length); }