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