DiscardThrough() 공개 메소드

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.
리턴 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);
 }