コード例 #1
0
 public RingBufferStreamReadBarrier(RingBufferStreamAdapter innerStream, int length)
 {
     _ringBuffer = innerStream._ringBuffer;
     if (!_ringBuffer.TryAddReadingGate((uint)length, out _gate))
     {
         Console.WriteLine("Could not add reading gate?");
         throw new InvalidOperationException("Could not add reading gate?");
     }
     _length = length;
 }
コード例 #2
0
 public RingBufferStreamReadBarrier(RingBufferStreamAdapter innerStream, int length)
 {
     _ringBuffer = innerStream._ringBuffer;
     // _length = length;
     _gate = _ringBuffer.AddReadingGate((uint)length);
 }
コード例 #3
0
 public RingBufferStreamReadBarrier(RingBufferStreamAdapter innerStream, int length)
 {
     _ringBuffer = innerStream._ringBuffer;
     // _length = length;
     _gate = _ringBuffer.AddReadingGate((uint)length);
 }