<html>
<head><meta charset="utf-8"></head>
<body>
	<ul id="messages"></ul>
	<script type="text/javascript">
		class Key {
			constructor() {
				this._keys = new Int32Array(2);
			}

			get gapKey() {
				return this._keys[0];
			}

			set gapKey(value) {
				this._keys[0] = value;
			}

			get eventKey() {
				return this._keys[1];
			}

			set eventKey(value) {
				this._keys[1] = value;
			}

			buffer() {
				return this._keys.buffer;
			}

			nextKeyWithGap() {
				const k = new Key();
				k.gapKey = t