net.sf.jni4net.nio.BufferN.reset C# (CSharp) Method

reset() public method

public reset ( ) : BufferN
return BufferN
        public BufferN reset()
        {
            int m = _mark;
            if (m < 0)
                throw new InvalidMarkException();
            _position = m;
            return this;
        }

Usage Example

Example #1
0
 private static void checkInvalidMarkException(BufferN b)
 {
     tryCatch(b, typeof(InvalidMarkException), () =>
     {
         b.mark();
         compact(b);
         b.reset();
     });
 }