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
示例#1
0
 public void Discard(int bytes)
 {
     lock (_localLock)
     {
         _buffer.DiscardThrough(_buffer.BaseOffset + bytes);
     }
 }
示例#2
0
 public void Discard(int bytes)
 {
     CheckLock();
     _buffer.DiscardThrough(_buffer.BaseOffset + bytes);
 }