コード例 #1
0
 /// <summary>
 ///     Reads <paramref name="count" /> bytes from <paramref name="source" />,
 ///     and writes to the ringbuffer.
 /// </summary>
 /// <param name="source">Source to take bytes from for writing.</param>
 /// <param name="count">Number of bytes to read/write.</param>
 /// <returns>Number of bytes written (read from the source).</returns>
 public int WriteFrom(Stream source, int count)
 {
     RingBuffer.PutFrom(source, count);
     return(count);
 }