public BufferN reset() { int m = _mark; if (m < 0) throw new InvalidMarkException(); _position = m; return this; }
private static void checkInvalidMarkException(BufferN b) { tryCatch(b, typeof(InvalidMarkException), () => { b.mark(); compact(b); b.reset(); }); }