public Reader(OnReadDone onDone, BoundedBuffer buffer, int numOfStrings) { this.onDone = onDone; this.StringList = new List<string>(Count); this.Buffer = buffer; this.Count = numOfStrings; base.LoopMethod = ReadLoop; }
/// <summary> /// Create a modifier. /// </summary> /// <param name="buffer">The buffer to modify.</param> /// <param name="textLength"> Number of strings.</param> public Modifier(BoundedBuffer buffer, int textLength) { this.Buffer = buffer; this.Count = textLength; base.LoopMethod = ModifierLoop; }
/// <summary> /// Creates a writer /// </summary> /// <param name="buffer">The buffer to write to</param> /// <param name="textToWrite">The text to write.</param> public Writer(BoundedBuffer buffer, List<string> textToWrite) { this.TextToWrite = textToWrite; this.Buffer = buffer; base.LoopMethod = WriteLoop; }