DiscardThrough() public method

Tells the buffer that it no longer needs to maintain any bytes before the indicated offset.
public DiscardThrough ( long offset ) : void
offset long The offset to discard through.
return void
Beispiel #1
0
 public void Discard(int bytes)
 {
     lock (_localLock)
     {
         _buffer.DiscardThrough(_buffer.BaseOffset + bytes);
     }
 }
Beispiel #2
0
 public void Discard(int bytes)
 {
     CheckLock();
     _buffer.DiscardThrough(_buffer.BaseOffset + bytes);
 }