示例#1
0
 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;
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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;
 }