ms-toollib 1.4.0-alpha → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ms_toollib.js CHANGED
@@ -1,3629 +1,4 @@
1
- let imports = {};
2
- imports['__wbindgen_placeholder__'] = module.exports;
3
- let wasm;
4
- const { TextDecoder, TextEncoder, inspect } = require(`util`);
5
-
6
- const heap = new Array(128).fill(undefined);
7
-
8
- heap.push(undefined, null, true, false);
9
-
10
- function getObject(idx) { return heap[idx]; }
11
-
12
- let heap_next = heap.length;
13
-
14
- function dropObject(idx) {
15
- if (idx < 132) return;
16
- heap[idx] = heap_next;
17
- heap_next = idx;
18
- }
19
-
20
- function takeObject(idx) {
21
- const ret = getObject(idx);
22
- dropObject(idx);
23
- return ret;
24
- }
25
-
26
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
-
28
- cachedTextDecoder.decode();
29
-
30
- let cachedUint8Memory0 = null;
31
-
32
- function getUint8Memory0() {
33
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
34
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
35
- }
36
- return cachedUint8Memory0;
37
- }
38
-
39
- function getStringFromWasm0(ptr, len) {
40
- ptr = ptr >>> 0;
41
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
- }
43
-
44
- function addHeapObject(obj) {
45
- if (heap_next === heap.length) heap.push(heap.length + 1);
46
- const idx = heap_next;
47
- heap_next = heap[idx];
48
-
49
- heap[idx] = obj;
50
- return idx;
51
- }
52
-
53
- let WASM_VECTOR_LEN = 0;
54
-
55
- let cachedTextEncoder = new TextEncoder('utf-8');
56
-
57
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
58
- ? function (arg, view) {
59
- return cachedTextEncoder.encodeInto(arg, view);
60
- }
61
- : function (arg, view) {
62
- const buf = cachedTextEncoder.encode(arg);
63
- view.set(buf);
64
- return {
65
- read: arg.length,
66
- written: buf.length
67
- };
68
- });
69
-
70
- function passStringToWasm0(arg, malloc, realloc) {
71
-
72
- if (realloc === undefined) {
73
- const buf = cachedTextEncoder.encode(arg);
74
- const ptr = malloc(buf.length, 1) >>> 0;
75
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
76
- WASM_VECTOR_LEN = buf.length;
77
- return ptr;
78
- }
79
-
80
- let len = arg.length;
81
- let ptr = malloc(len, 1) >>> 0;
82
-
83
- const mem = getUint8Memory0();
84
-
85
- let offset = 0;
86
-
87
- for (; offset < len; offset++) {
88
- const code = arg.charCodeAt(offset);
89
- if (code > 0x7F) break;
90
- mem[ptr + offset] = code;
91
- }
92
-
93
- if (offset !== len) {
94
- if (offset !== 0) {
95
- arg = arg.slice(offset);
96
- }
97
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
98
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
99
- const ret = encodeString(arg, view);
100
-
101
- offset += ret.written;
102
- }
103
-
104
- WASM_VECTOR_LEN = offset;
105
- return ptr;
106
- }
107
-
108
- let cachedInt32Memory0 = null;
109
-
110
- function getInt32Memory0() {
111
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
112
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
113
- }
114
- return cachedInt32Memory0;
115
- }
116
-
117
- function passArray8ToWasm0(arg, malloc) {
118
- const ptr = malloc(arg.length * 1, 1) >>> 0;
119
- getUint8Memory0().set(arg, ptr / 1);
120
- WASM_VECTOR_LEN = arg.length;
121
- return ptr;
122
- }
123
-
124
- function getArrayU8FromWasm0(ptr, len) {
125
- ptr = ptr >>> 0;
126
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
127
- }
128
- /**
129
- * @param {string} board_json
130
- * @returns {number}
131
- */
132
- module.exports.cal_bbbv = function(board_json) {
133
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
134
- const len0 = WASM_VECTOR_LEN;
135
- const ret = wasm.cal_bbbv(ptr0, len0);
136
- return ret;
137
- };
138
-
139
- /**
140
- * @param {string} board_json
141
- * @returns {number}
142
- */
143
- module.exports.cal_op = function(board_json) {
144
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
145
- const len0 = WASM_VECTOR_LEN;
146
- const ret = wasm.cal_op(ptr0, len0);
147
- return ret;
148
- };
149
-
150
- /**
151
- * @param {string} board_json
152
- * @param {number} mine_num
153
- * @returns {string}
154
- */
155
- module.exports.cal_possibility_onboard = function(board_json, mine_num) {
156
- let deferred2_0;
157
- let deferred2_1;
158
- try {
159
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
160
- const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
161
- const len0 = WASM_VECTOR_LEN;
162
- wasm.cal_possibility_onboard(retptr, ptr0, len0, mine_num);
163
- var r0 = getInt32Memory0()[retptr / 4 + 0];
164
- var r1 = getInt32Memory0()[retptr / 4 + 1];
165
- deferred2_0 = r0;
166
- deferred2_1 = r1;
167
- return getStringFromWasm0(r0, r1);
168
- } finally {
169
- wasm.__wbindgen_add_to_stack_pointer(16);
170
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
171
- }
172
- };
173
-
174
- /**
175
- * @param {number} row
176
- * @param {number} column
177
- * @param {number} mine_num
178
- * @param {number} x0
179
- * @param {number} y0
180
- * @returns {string}
181
- */
182
- module.exports.laymine_number = function(row, column, mine_num, x0, y0) {
183
- let deferred1_0;
184
- let deferred1_1;
185
- try {
186
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
187
- wasm.laymine_number(retptr, row, column, mine_num, x0, y0);
188
- var r0 = getInt32Memory0()[retptr / 4 + 0];
189
- var r1 = getInt32Memory0()[retptr / 4 + 1];
190
- deferred1_0 = r0;
191
- deferred1_1 = r1;
192
- return getStringFromWasm0(r0, r1);
193
- } finally {
194
- wasm.__wbindgen_add_to_stack_pointer(16);
195
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
196
- }
197
- };
198
-
199
- /**
200
- * @param {number} row
201
- * @param {number} column
202
- * @param {number} mine_num
203
- * @param {number} x0
204
- * @param {number} y0
205
- * @returns {string}
206
- */
207
- module.exports.laymine_op_number = function(row, column, mine_num, x0, y0) {
208
- let deferred1_0;
209
- let deferred1_1;
210
- try {
211
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
212
- wasm.laymine_op_number(retptr, row, column, mine_num, x0, y0);
213
- var r0 = getInt32Memory0()[retptr / 4 + 0];
214
- var r1 = getInt32Memory0()[retptr / 4 + 1];
215
- deferred1_0 = r0;
216
- deferred1_1 = r1;
217
- return getStringFromWasm0(r0, r1);
218
- } finally {
219
- wasm.__wbindgen_add_to_stack_pointer(16);
220
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
221
- }
222
- };
223
-
224
- /**
225
- * @param {number} row
226
- * @param {number} column
227
- * @param {number} mine_num
228
- * @param {number} x0
229
- * @param {number} y0
230
- * @param {number} max_times
231
- * @returns {string}
232
- */
233
- module.exports.laymine_solvable = function(row, column, mine_num, x0, y0, max_times) {
234
- let deferred1_0;
235
- let deferred1_1;
236
- try {
237
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
238
- wasm.laymine_solvable(retptr, row, column, mine_num, x0, y0, max_times);
239
- var r0 = getInt32Memory0()[retptr / 4 + 0];
240
- var r1 = getInt32Memory0()[retptr / 4 + 1];
241
- deferred1_0 = r0;
242
- deferred1_1 = r1;
243
- return getStringFromWasm0(r0, r1);
244
- } finally {
245
- wasm.__wbindgen_add_to_stack_pointer(16);
246
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
247
- }
248
- };
249
-
250
- function handleError(f, args) {
251
- try {
252
- return f.apply(this, args);
253
- } catch (e) {
254
- wasm.__wbindgen_exn_store(addHeapObject(e));
255
- }
256
- }
257
- /**
258
- */
259
- class AvfVideo {
260
-
261
- static __wrap(ptr) {
262
- ptr = ptr >>> 0;
263
- const obj = Object.create(AvfVideo.prototype);
264
- obj.__wbg_ptr = ptr;
265
-
266
- return obj;
267
- }
268
-
269
- toJSON() {
270
- return {
271
- get_raw_data: this.get_raw_data,
272
- get_software: this.get_software,
273
- get_row: this.get_row,
274
- get_column: this.get_column,
275
- get_level: this.get_level,
276
- get_mode: this.get_mode,
277
- get_is_completed: this.get_is_completed,
278
- get_is_offical: this.get_is_offical,
279
- get_is_fair: this.get_is_fair,
280
- get_mine_num: this.get_mine_num,
281
- get_player_designator: this.get_player_designator,
282
- get_race_designator: this.get_race_designator,
283
- get_uniqueness_designator: this.get_uniqueness_designator,
284
- get_country: this.get_country,
285
- get_bbbv: this.get_bbbv,
286
- get_start_time: this.get_start_time,
287
- get_end_time: this.get_end_time,
288
- get_op: this.get_op,
289
- get_isl: this.get_isl,
290
- get_hizi: this.get_hizi,
291
- get_cell0: this.get_cell0,
292
- get_cell1: this.get_cell1,
293
- get_cell2: this.get_cell2,
294
- get_cell3: this.get_cell3,
295
- get_cell4: this.get_cell4,
296
- get_cell5: this.get_cell5,
297
- get_cell6: this.get_cell6,
298
- get_cell7: this.get_cell7,
299
- get_cell8: this.get_cell8,
300
- get_rtime: this.get_rtime,
301
- get_rtime_ms: this.get_rtime_ms,
302
- get_etime: this.get_etime,
303
- get_video_time: this.get_video_time,
304
- get_bbbv_s: this.get_bbbv_s,
305
- get_stnb: this.get_stnb,
306
- get_rqp: this.get_rqp,
307
- get_left: this.get_left,
308
- get_right: this.get_right,
309
- get_double: this.get_double,
310
- get_cl: this.get_cl,
311
- get_flag: this.get_flag,
312
- get_bbbv_solved: this.get_bbbv_solved,
313
- get_ce: this.get_ce,
314
- get_left_s: this.get_left_s,
315
- get_right_s: this.get_right_s,
316
- get_double_s: this.get_double_s,
317
- get_cl_s: this.get_cl_s,
318
- get_flag_s: this.get_flag_s,
319
- get_path: this.get_path,
320
- get_ce_s: this.get_ce_s,
321
- get_ioe: this.get_ioe,
322
- get_thrp: this.get_thrp,
323
- get_corr: this.get_corr,
324
- get_events_len: this.get_events_len,
325
- get_current_event_id: this.get_current_event_id,
326
- get_game_board: this.get_game_board,
327
- get_game_board_poss: this.get_game_board_poss,
328
- get_mouse_state: this.get_mouse_state,
329
- get_game_board_state: this.get_game_board_state,
330
- get_x_y: this.get_x_y,
331
- get_checksum: this.get_checksum,
332
- };
333
- }
334
-
335
- toString() {
336
- return JSON.stringify(this);
337
- }
338
-
339
- [inspect.custom]() {
340
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
341
- }
342
-
343
- __destroy_into_raw() {
344
- const ptr = this.__wbg_ptr;
345
- this.__wbg_ptr = 0;
346
-
347
- return ptr;
348
- }
349
-
350
- free() {
351
- const ptr = this.__destroy_into_raw();
352
- wasm.__wbg_avfvideo_free(ptr);
353
- }
354
- /**
355
- * @param {Uint8Array} data
356
- * @param {string} file_name
357
- * @returns {AvfVideo}
358
- */
359
- static new(data, file_name) {
360
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
361
- const len0 = WASM_VECTOR_LEN;
362
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
- const len1 = WASM_VECTOR_LEN;
364
- const ret = wasm.avfvideo_new(ptr0, len0, ptr1, len1);
365
- return AvfVideo.__wrap(ret);
366
- }
367
- /**
368
- */
369
- parse_video() {
370
- wasm.avfvideo_parse_video(this.__wbg_ptr);
371
- }
372
- /**
373
- */
374
- analyse() {
375
- wasm.avfvideo_analyse(this.__wbg_ptr);
376
- }
377
- /**
378
- * @returns {Uint8Array}
379
- */
380
- get get_raw_data() {
381
- try {
382
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
383
- wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
384
- var r0 = getInt32Memory0()[retptr / 4 + 0];
385
- var r1 = getInt32Memory0()[retptr / 4 + 1];
386
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
387
- wasm.__wbindgen_free(r0, r1 * 1);
388
- return v1;
389
- } finally {
390
- wasm.__wbindgen_add_to_stack_pointer(16);
391
- }
392
- }
393
- /**
394
- * @returns {Uint8Array}
395
- */
396
- get get_software() {
397
- try {
398
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
399
- wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
400
- var r0 = getInt32Memory0()[retptr / 4 + 0];
401
- var r1 = getInt32Memory0()[retptr / 4 + 1];
402
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
403
- wasm.__wbindgen_free(r0, r1 * 1);
404
- return v1;
405
- } finally {
406
- wasm.__wbindgen_add_to_stack_pointer(16);
407
- }
408
- }
409
- /**
410
- * @returns {number}
411
- */
412
- get get_row() {
413
- const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
414
- return ret >>> 0;
415
- }
416
- /**
417
- * @returns {number}
418
- */
419
- get get_column() {
420
- const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
421
- return ret >>> 0;
422
- }
423
- /**
424
- * @returns {number}
425
- */
426
- get get_level() {
427
- const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
428
- return ret;
429
- }
430
- /**
431
- * @returns {number}
432
- */
433
- get get_mode() {
434
- const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
435
- return ret;
436
- }
437
- /**
438
- * @returns {boolean}
439
- */
440
- get get_is_completed() {
441
- const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
442
- return ret !== 0;
443
- }
444
- /**
445
- * @returns {boolean}
446
- */
447
- get get_is_offical() {
448
- const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
449
- return ret !== 0;
450
- }
451
- /**
452
- * @returns {boolean}
453
- */
454
- get get_is_fair() {
455
- const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
456
- return ret !== 0;
457
- }
458
- /**
459
- * @returns {number}
460
- */
461
- get get_mine_num() {
462
- const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
463
- return ret >>> 0;
464
- }
465
- /**
466
- * @returns {Uint8Array}
467
- */
468
- get get_player_designator() {
469
- try {
470
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
471
- wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
472
- var r0 = getInt32Memory0()[retptr / 4 + 0];
473
- var r1 = getInt32Memory0()[retptr / 4 + 1];
474
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
475
- wasm.__wbindgen_free(r0, r1 * 1);
476
- return v1;
477
- } finally {
478
- wasm.__wbindgen_add_to_stack_pointer(16);
479
- }
480
- }
481
- /**
482
- * @returns {Uint8Array}
483
- */
484
- get get_race_designator() {
485
- try {
486
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
487
- wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
488
- var r0 = getInt32Memory0()[retptr / 4 + 0];
489
- var r1 = getInt32Memory0()[retptr / 4 + 1];
490
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
491
- wasm.__wbindgen_free(r0, r1 * 1);
492
- return v1;
493
- } finally {
494
- wasm.__wbindgen_add_to_stack_pointer(16);
495
- }
496
- }
497
- /**
498
- * @returns {Uint8Array}
499
- */
500
- get get_uniqueness_designator() {
501
- try {
502
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
503
- wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
504
- var r0 = getInt32Memory0()[retptr / 4 + 0];
505
- var r1 = getInt32Memory0()[retptr / 4 + 1];
506
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
507
- wasm.__wbindgen_free(r0, r1 * 1);
508
- return v1;
509
- } finally {
510
- wasm.__wbindgen_add_to_stack_pointer(16);
511
- }
512
- }
513
- /**
514
- * @returns {Uint8Array}
515
- */
516
- get get_country() {
517
- try {
518
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
519
- wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
520
- var r0 = getInt32Memory0()[retptr / 4 + 0];
521
- var r1 = getInt32Memory0()[retptr / 4 + 1];
522
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
523
- wasm.__wbindgen_free(r0, r1 * 1);
524
- return v1;
525
- } finally {
526
- wasm.__wbindgen_add_to_stack_pointer(16);
527
- }
528
- }
529
- /**
530
- * @returns {number}
531
- */
532
- get get_bbbv() {
533
- const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
534
- return ret >>> 0;
535
- }
536
- /**
537
- * @returns {Uint8Array}
538
- */
539
- get get_start_time() {
540
- try {
541
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
542
- wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
543
- var r0 = getInt32Memory0()[retptr / 4 + 0];
544
- var r1 = getInt32Memory0()[retptr / 4 + 1];
545
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
546
- wasm.__wbindgen_free(r0, r1 * 1);
547
- return v1;
548
- } finally {
549
- wasm.__wbindgen_add_to_stack_pointer(16);
550
- }
551
- }
552
- /**
553
- * @returns {Uint8Array}
554
- */
555
- get get_end_time() {
556
- try {
557
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
558
- wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
559
- var r0 = getInt32Memory0()[retptr / 4 + 0];
560
- var r1 = getInt32Memory0()[retptr / 4 + 1];
561
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
562
- wasm.__wbindgen_free(r0, r1 * 1);
563
- return v1;
564
- } finally {
565
- wasm.__wbindgen_add_to_stack_pointer(16);
566
- }
567
- }
568
- /**
569
- * @returns {number}
570
- */
571
- get get_op() {
572
- const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
573
- return ret >>> 0;
574
- }
575
- /**
576
- * @returns {number}
577
- */
578
- get get_isl() {
579
- const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
580
- return ret >>> 0;
581
- }
582
- /**
583
- * @returns {number}
584
- */
585
- get get_hizi() {
586
- const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
587
- return ret >>> 0;
588
- }
589
- /**
590
- * @returns {number}
591
- */
592
- get get_cell0() {
593
- const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
594
- return ret >>> 0;
595
- }
596
- /**
597
- * @returns {number}
598
- */
599
- get get_cell1() {
600
- const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
601
- return ret >>> 0;
602
- }
603
- /**
604
- * @returns {number}
605
- */
606
- get get_cell2() {
607
- const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
608
- return ret >>> 0;
609
- }
610
- /**
611
- * @returns {number}
612
- */
613
- get get_cell3() {
614
- const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
615
- return ret >>> 0;
616
- }
617
- /**
618
- * @returns {number}
619
- */
620
- get get_cell4() {
621
- const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
622
- return ret >>> 0;
623
- }
624
- /**
625
- * @returns {number}
626
- */
627
- get get_cell5() {
628
- const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
629
- return ret >>> 0;
630
- }
631
- /**
632
- * @returns {number}
633
- */
634
- get get_cell6() {
635
- const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
636
- return ret >>> 0;
637
- }
638
- /**
639
- * @returns {number}
640
- */
641
- get get_cell7() {
642
- const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
643
- return ret >>> 0;
644
- }
645
- /**
646
- * @returns {number}
647
- */
648
- get get_cell8() {
649
- const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
650
- return ret >>> 0;
651
- }
652
- /**
653
- * @returns {number}
654
- */
655
- get get_rtime() {
656
- const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
657
- return ret;
658
- }
659
- /**
660
- * @returns {number}
661
- */
662
- get get_rtime_ms() {
663
- const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
664
- return ret >>> 0;
665
- }
666
- /**
667
- * @returns {number}
668
- */
669
- get get_etime() {
670
- const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
671
- return ret;
672
- }
673
- /**
674
- * @returns {number}
675
- */
676
- get get_video_time() {
677
- const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
678
- return ret;
679
- }
680
- /**
681
- * @returns {number}
682
- */
683
- get get_bbbv_s() {
684
- const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
685
- return ret;
686
- }
687
- /**
688
- * @returns {number}
689
- */
690
- get get_stnb() {
691
- const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
692
- return ret;
693
- }
694
- /**
695
- * @returns {number}
696
- */
697
- get get_rqp() {
698
- const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
699
- return ret;
700
- }
701
- /**
702
- * @returns {number}
703
- */
704
- get get_left() {
705
- const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
706
- return ret >>> 0;
707
- }
708
- /**
709
- * @returns {number}
710
- */
711
- get get_right() {
712
- const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
713
- return ret >>> 0;
714
- }
715
- /**
716
- * @returns {number}
717
- */
718
- get get_double() {
719
- const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
720
- return ret >>> 0;
721
- }
722
- /**
723
- * @returns {number}
724
- */
725
- get get_cl() {
726
- const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
727
- return ret >>> 0;
728
- }
729
- /**
730
- * @returns {number}
731
- */
732
- get get_flag() {
733
- const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
734
- return ret >>> 0;
735
- }
736
- /**
737
- * @returns {number}
738
- */
739
- get get_bbbv_solved() {
740
- const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
741
- return ret >>> 0;
742
- }
743
- /**
744
- * @returns {number}
745
- */
746
- get get_ce() {
747
- const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
748
- return ret >>> 0;
749
- }
750
- /**
751
- * @returns {number}
752
- */
753
- get get_left_s() {
754
- const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
755
- return ret;
756
- }
757
- /**
758
- * @returns {number}
759
- */
760
- get get_right_s() {
761
- const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
762
- return ret;
763
- }
764
- /**
765
- * @returns {number}
766
- */
767
- get get_double_s() {
768
- const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
769
- return ret;
770
- }
771
- /**
772
- * @returns {number}
773
- */
774
- get get_cl_s() {
775
- const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
776
- return ret;
777
- }
778
- /**
779
- * @returns {number}
780
- */
781
- get get_flag_s() {
782
- const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
783
- return ret;
784
- }
785
- /**
786
- * @returns {number}
787
- */
788
- get get_path() {
789
- const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
790
- return ret;
791
- }
792
- /**
793
- * @returns {number}
794
- */
795
- get get_ce_s() {
796
- const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
797
- return ret;
798
- }
799
- /**
800
- * @returns {number}
801
- */
802
- get get_ioe() {
803
- const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
804
- return ret;
805
- }
806
- /**
807
- * @returns {number}
808
- */
809
- get get_thrp() {
810
- const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
811
- return ret;
812
- }
813
- /**
814
- * @returns {number}
815
- */
816
- get get_corr() {
817
- const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
818
- return ret;
819
- }
820
- /**
821
- * @returns {number}
822
- */
823
- get get_events_len() {
824
- const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
825
- return ret >>> 0;
826
- }
827
- /**
828
- * @param {number} index
829
- * @returns {number}
830
- */
831
- events_time(index) {
832
- const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
833
- return ret;
834
- }
835
- /**
836
- * @param {number} index
837
- * @returns {string}
838
- */
839
- events_mouse(index) {
840
- let deferred1_0;
841
- let deferred1_1;
842
- try {
843
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
844
- wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
845
- var r0 = getInt32Memory0()[retptr / 4 + 0];
846
- var r1 = getInt32Memory0()[retptr / 4 + 1];
847
- deferred1_0 = r0;
848
- deferred1_1 = r1;
849
- return getStringFromWasm0(r0, r1);
850
- } finally {
851
- wasm.__wbindgen_add_to_stack_pointer(16);
852
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
853
- }
854
- }
855
- /**
856
- * @param {number} index
857
- * @returns {number}
858
- */
859
- events_x(index) {
860
- const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
861
- return ret;
862
- }
863
- /**
864
- * @param {number} index
865
- * @returns {number}
866
- */
867
- events_y(index) {
868
- const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
869
- return ret;
870
- }
871
- /**
872
- * @param {number} index
873
- * @returns {number}
874
- */
875
- events_useful_level(index) {
876
- const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
877
- return ret;
878
- }
879
- /**
880
- * @param {number} index
881
- * @returns {number}
882
- */
883
- events_mouse_state(index) {
884
- const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
885
- return ret >>> 0;
886
- }
887
- /**
888
- * @returns {number}
889
- */
890
- get get_current_event_id() {
891
- const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
892
- return ret >>> 0;
893
- }
894
- /**
895
- * @param {number} id
896
- */
897
- set current_event_id(id) {
898
- wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
899
- }
900
- /**
901
- * @returns {string}
902
- */
903
- get get_game_board() {
904
- let deferred1_0;
905
- let deferred1_1;
906
- try {
907
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
908
- wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
909
- var r0 = getInt32Memory0()[retptr / 4 + 0];
910
- var r1 = getInt32Memory0()[retptr / 4 + 1];
911
- deferred1_0 = r0;
912
- deferred1_1 = r1;
913
- return getStringFromWasm0(r0, r1);
914
- } finally {
915
- wasm.__wbindgen_add_to_stack_pointer(16);
916
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
917
- }
918
- }
919
- /**
920
- * @returns {string}
921
- */
922
- get get_game_board_poss() {
923
- let deferred1_0;
924
- let deferred1_1;
925
- try {
926
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
927
- wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
928
- var r0 = getInt32Memory0()[retptr / 4 + 0];
929
- var r1 = getInt32Memory0()[retptr / 4 + 1];
930
- deferred1_0 = r0;
931
- deferred1_1 = r1;
932
- return getStringFromWasm0(r0, r1);
933
- } finally {
934
- wasm.__wbindgen_add_to_stack_pointer(16);
935
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
936
- }
937
- }
938
- /**
939
- * @returns {number}
940
- */
941
- get get_mouse_state() {
942
- const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
943
- return ret >>> 0;
944
- }
945
- /**
946
- * 局面状态
947
- * @returns {number}
948
- */
949
- get get_game_board_state() {
950
- const ret = wasm.avfvideo_get_game_board_state(this.__wbg_ptr);
951
- return ret >>> 0;
952
- }
953
- /**
954
- * 返回当前光标的位置,播放录像用
955
- * @returns {CursorPos}
956
- */
957
- get get_x_y() {
958
- const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
959
- return CursorPos.__wrap(ret);
960
- }
961
- /**
962
- * @returns {Uint8Array}
963
- */
964
- get get_checksum() {
965
- try {
966
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
967
- wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
968
- var r0 = getInt32Memory0()[retptr / 4 + 0];
969
- var r1 = getInt32Memory0()[retptr / 4 + 1];
970
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
971
- wasm.__wbindgen_free(r0, r1 * 1);
972
- return v1;
973
- } finally {
974
- wasm.__wbindgen_add_to_stack_pointer(16);
975
- }
976
- }
977
- /**
978
- * @param {number} time
979
- */
980
- set current_time(time) {
981
- wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
982
- }
983
- /**
984
- * @returns {number}
985
- */
986
- is_valid() {
987
- const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
988
- return ret;
989
- }
990
- }
991
- module.exports.AvfVideo = AvfVideo;
992
- /**
993
- */
994
- class CursorPos {
995
-
996
- static __wrap(ptr) {
997
- ptr = ptr >>> 0;
998
- const obj = Object.create(CursorPos.prototype);
999
- obj.__wbg_ptr = ptr;
1000
-
1001
- return obj;
1002
- }
1003
-
1004
- __destroy_into_raw() {
1005
- const ptr = this.__wbg_ptr;
1006
- this.__wbg_ptr = 0;
1007
-
1008
- return ptr;
1009
- }
1010
-
1011
- free() {
1012
- const ptr = this.__destroy_into_raw();
1013
- wasm.__wbg_cursorpos_free(ptr);
1014
- }
1015
- /**
1016
- * @returns {number}
1017
- */
1018
- get 0() {
1019
- const ret = wasm.__wbg_get_cursorpos_0(this.__wbg_ptr);
1020
- return ret;
1021
- }
1022
- /**
1023
- * @param {number} arg0
1024
- */
1025
- set 0(arg0) {
1026
- wasm.__wbg_set_cursorpos_0(this.__wbg_ptr, arg0);
1027
- }
1028
- /**
1029
- * @returns {number}
1030
- */
1031
- get 1() {
1032
- const ret = wasm.__wbg_get_cursorpos_1(this.__wbg_ptr);
1033
- return ret;
1034
- }
1035
- /**
1036
- * @param {number} arg0
1037
- */
1038
- set 1(arg0) {
1039
- wasm.__wbg_set_cursorpos_1(this.__wbg_ptr, arg0);
1040
- }
1041
- }
1042
- module.exports.CursorPos = CursorPos;
1043
- /**
1044
- */
1045
- class EvfVideo {
1046
-
1047
- static __wrap(ptr) {
1048
- ptr = ptr >>> 0;
1049
- const obj = Object.create(EvfVideo.prototype);
1050
- obj.__wbg_ptr = ptr;
1051
-
1052
- return obj;
1053
- }
1054
-
1055
- toJSON() {
1056
- return {
1057
- get_raw_data: this.get_raw_data,
1058
- get_software: this.get_software,
1059
- get_row: this.get_row,
1060
- get_column: this.get_column,
1061
- get_level: this.get_level,
1062
- get_mode: this.get_mode,
1063
- get_is_completed: this.get_is_completed,
1064
- get_is_offical: this.get_is_offical,
1065
- get_is_fair: this.get_is_fair,
1066
- get_mine_num: this.get_mine_num,
1067
- get_player_designator: this.get_player_designator,
1068
- get_race_designator: this.get_race_designator,
1069
- get_uniqueness_designator: this.get_uniqueness_designator,
1070
- get_country: this.get_country,
1071
- get_bbbv: this.get_bbbv,
1072
- get_start_time: this.get_start_time,
1073
- get_end_time: this.get_end_time,
1074
- get_op: this.get_op,
1075
- get_isl: this.get_isl,
1076
- get_hizi: this.get_hizi,
1077
- get_cell0: this.get_cell0,
1078
- get_cell1: this.get_cell1,
1079
- get_cell2: this.get_cell2,
1080
- get_cell3: this.get_cell3,
1081
- get_cell4: this.get_cell4,
1082
- get_cell5: this.get_cell5,
1083
- get_cell6: this.get_cell6,
1084
- get_cell7: this.get_cell7,
1085
- get_cell8: this.get_cell8,
1086
- get_rtime: this.get_rtime,
1087
- get_rtime_ms: this.get_rtime_ms,
1088
- get_etime: this.get_etime,
1089
- get_video_time: this.get_video_time,
1090
- get_bbbv_s: this.get_bbbv_s,
1091
- get_stnb: this.get_stnb,
1092
- get_rqp: this.get_rqp,
1093
- get_left: this.get_left,
1094
- get_right: this.get_right,
1095
- get_double: this.get_double,
1096
- get_cl: this.get_cl,
1097
- get_flag: this.get_flag,
1098
- get_bbbv_solved: this.get_bbbv_solved,
1099
- get_ce: this.get_ce,
1100
- get_left_s: this.get_left_s,
1101
- get_right_s: this.get_right_s,
1102
- get_double_s: this.get_double_s,
1103
- get_cl_s: this.get_cl_s,
1104
- get_flag_s: this.get_flag_s,
1105
- get_path: this.get_path,
1106
- get_ce_s: this.get_ce_s,
1107
- get_ioe: this.get_ioe,
1108
- get_thrp: this.get_thrp,
1109
- get_corr: this.get_corr,
1110
- get_events_len: this.get_events_len,
1111
- get_current_event_id: this.get_current_event_id,
1112
- get_game_board: this.get_game_board,
1113
- get_game_board_poss: this.get_game_board_poss,
1114
- get_mouse_state: this.get_mouse_state,
1115
- get_game_board_state: this.get_game_board_state,
1116
- get_x_y: this.get_x_y,
1117
- get_checksum: this.get_checksum,
1118
- };
1119
- }
1120
-
1121
- toString() {
1122
- return JSON.stringify(this);
1123
- }
1124
-
1125
- [inspect.custom]() {
1126
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
1127
- }
1128
-
1129
- __destroy_into_raw() {
1130
- const ptr = this.__wbg_ptr;
1131
- this.__wbg_ptr = 0;
1132
-
1133
- return ptr;
1134
- }
1135
-
1136
- free() {
1137
- const ptr = this.__destroy_into_raw();
1138
- wasm.__wbg_evfvideo_free(ptr);
1139
- }
1140
- /**
1141
- * @param {Uint8Array} data
1142
- * @param {string} file_name
1143
- * @returns {EvfVideo}
1144
- */
1145
- static new(data, file_name) {
1146
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
1147
- const len0 = WASM_VECTOR_LEN;
1148
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1149
- const len1 = WASM_VECTOR_LEN;
1150
- const ret = wasm.evfvideo_new(ptr0, len0, ptr1, len1);
1151
- return EvfVideo.__wrap(ret);
1152
- }
1153
- /**
1154
- */
1155
- parse_video() {
1156
- wasm.evfvideo_parse_video(this.__wbg_ptr);
1157
- }
1158
- /**
1159
- */
1160
- analyse() {
1161
- wasm.avfvideo_analyse(this.__wbg_ptr);
1162
- }
1163
- /**
1164
- * @returns {Uint8Array}
1165
- */
1166
- get get_raw_data() {
1167
- try {
1168
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1169
- wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
1170
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1171
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1172
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1173
- wasm.__wbindgen_free(r0, r1 * 1);
1174
- return v1;
1175
- } finally {
1176
- wasm.__wbindgen_add_to_stack_pointer(16);
1177
- }
1178
- }
1179
- /**
1180
- * @returns {Uint8Array}
1181
- */
1182
- get get_software() {
1183
- try {
1184
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1185
- wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
1186
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1187
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1188
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1189
- wasm.__wbindgen_free(r0, r1 * 1);
1190
- return v1;
1191
- } finally {
1192
- wasm.__wbindgen_add_to_stack_pointer(16);
1193
- }
1194
- }
1195
- /**
1196
- * @returns {number}
1197
- */
1198
- get get_row() {
1199
- const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
1200
- return ret >>> 0;
1201
- }
1202
- /**
1203
- * @returns {number}
1204
- */
1205
- get get_column() {
1206
- const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
1207
- return ret >>> 0;
1208
- }
1209
- /**
1210
- * @returns {number}
1211
- */
1212
- get get_level() {
1213
- const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
1214
- return ret;
1215
- }
1216
- /**
1217
- * @returns {number}
1218
- */
1219
- get get_mode() {
1220
- const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
1221
- return ret;
1222
- }
1223
- /**
1224
- * @returns {boolean}
1225
- */
1226
- get get_is_completed() {
1227
- const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
1228
- return ret !== 0;
1229
- }
1230
- /**
1231
- * @returns {boolean}
1232
- */
1233
- get get_is_offical() {
1234
- const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
1235
- return ret !== 0;
1236
- }
1237
- /**
1238
- * @returns {boolean}
1239
- */
1240
- get get_is_fair() {
1241
- const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
1242
- return ret !== 0;
1243
- }
1244
- /**
1245
- * @returns {number}
1246
- */
1247
- get get_mine_num() {
1248
- const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
1249
- return ret >>> 0;
1250
- }
1251
- /**
1252
- * @returns {Uint8Array}
1253
- */
1254
- get get_player_designator() {
1255
- try {
1256
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1257
- wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
1258
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1259
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1260
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1261
- wasm.__wbindgen_free(r0, r1 * 1);
1262
- return v1;
1263
- } finally {
1264
- wasm.__wbindgen_add_to_stack_pointer(16);
1265
- }
1266
- }
1267
- /**
1268
- * @returns {Uint8Array}
1269
- */
1270
- get get_race_designator() {
1271
- try {
1272
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1273
- wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
1274
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1275
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1276
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1277
- wasm.__wbindgen_free(r0, r1 * 1);
1278
- return v1;
1279
- } finally {
1280
- wasm.__wbindgen_add_to_stack_pointer(16);
1281
- }
1282
- }
1283
- /**
1284
- * @returns {Uint8Array}
1285
- */
1286
- get get_uniqueness_designator() {
1287
- try {
1288
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1289
- wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
1290
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1291
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1292
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1293
- wasm.__wbindgen_free(r0, r1 * 1);
1294
- return v1;
1295
- } finally {
1296
- wasm.__wbindgen_add_to_stack_pointer(16);
1297
- }
1298
- }
1299
- /**
1300
- * @returns {Uint8Array}
1301
- */
1302
- get get_country() {
1303
- try {
1304
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1305
- wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
1306
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1307
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1308
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1309
- wasm.__wbindgen_free(r0, r1 * 1);
1310
- return v1;
1311
- } finally {
1312
- wasm.__wbindgen_add_to_stack_pointer(16);
1313
- }
1314
- }
1315
- /**
1316
- * @returns {number}
1317
- */
1318
- get get_bbbv() {
1319
- const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
1320
- return ret >>> 0;
1321
- }
1322
- /**
1323
- * @returns {Uint8Array}
1324
- */
1325
- get get_start_time() {
1326
- try {
1327
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1328
- wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
1329
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1330
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1331
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1332
- wasm.__wbindgen_free(r0, r1 * 1);
1333
- return v1;
1334
- } finally {
1335
- wasm.__wbindgen_add_to_stack_pointer(16);
1336
- }
1337
- }
1338
- /**
1339
- * @returns {Uint8Array}
1340
- */
1341
- get get_end_time() {
1342
- try {
1343
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1344
- wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
1345
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1346
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1347
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1348
- wasm.__wbindgen_free(r0, r1 * 1);
1349
- return v1;
1350
- } finally {
1351
- wasm.__wbindgen_add_to_stack_pointer(16);
1352
- }
1353
- }
1354
- /**
1355
- * @returns {number}
1356
- */
1357
- get get_op() {
1358
- const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
1359
- return ret >>> 0;
1360
- }
1361
- /**
1362
- * @returns {number}
1363
- */
1364
- get get_isl() {
1365
- const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
1366
- return ret >>> 0;
1367
- }
1368
- /**
1369
- * @returns {number}
1370
- */
1371
- get get_hizi() {
1372
- const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
1373
- return ret >>> 0;
1374
- }
1375
- /**
1376
- * @returns {number}
1377
- */
1378
- get get_cell0() {
1379
- const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
1380
- return ret >>> 0;
1381
- }
1382
- /**
1383
- * @returns {number}
1384
- */
1385
- get get_cell1() {
1386
- const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
1387
- return ret >>> 0;
1388
- }
1389
- /**
1390
- * @returns {number}
1391
- */
1392
- get get_cell2() {
1393
- const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
1394
- return ret >>> 0;
1395
- }
1396
- /**
1397
- * @returns {number}
1398
- */
1399
- get get_cell3() {
1400
- const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
1401
- return ret >>> 0;
1402
- }
1403
- /**
1404
- * @returns {number}
1405
- */
1406
- get get_cell4() {
1407
- const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
1408
- return ret >>> 0;
1409
- }
1410
- /**
1411
- * @returns {number}
1412
- */
1413
- get get_cell5() {
1414
- const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
1415
- return ret >>> 0;
1416
- }
1417
- /**
1418
- * @returns {number}
1419
- */
1420
- get get_cell6() {
1421
- const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
1422
- return ret >>> 0;
1423
- }
1424
- /**
1425
- * @returns {number}
1426
- */
1427
- get get_cell7() {
1428
- const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
1429
- return ret >>> 0;
1430
- }
1431
- /**
1432
- * @returns {number}
1433
- */
1434
- get get_cell8() {
1435
- const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
1436
- return ret >>> 0;
1437
- }
1438
- /**
1439
- * @returns {number}
1440
- */
1441
- get get_rtime() {
1442
- const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
1443
- return ret;
1444
- }
1445
- /**
1446
- * @returns {number}
1447
- */
1448
- get get_rtime_ms() {
1449
- const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
1450
- return ret >>> 0;
1451
- }
1452
- /**
1453
- * @returns {number}
1454
- */
1455
- get get_etime() {
1456
- const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
1457
- return ret;
1458
- }
1459
- /**
1460
- * @returns {number}
1461
- */
1462
- get get_video_time() {
1463
- const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
1464
- return ret;
1465
- }
1466
- /**
1467
- * @returns {number}
1468
- */
1469
- get get_bbbv_s() {
1470
- const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
1471
- return ret;
1472
- }
1473
- /**
1474
- * @returns {number}
1475
- */
1476
- get get_stnb() {
1477
- const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
1478
- return ret;
1479
- }
1480
- /**
1481
- * @returns {number}
1482
- */
1483
- get get_rqp() {
1484
- const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
1485
- return ret;
1486
- }
1487
- /**
1488
- * @returns {number}
1489
- */
1490
- get get_left() {
1491
- const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
1492
- return ret >>> 0;
1493
- }
1494
- /**
1495
- * @returns {number}
1496
- */
1497
- get get_right() {
1498
- const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
1499
- return ret >>> 0;
1500
- }
1501
- /**
1502
- * @returns {number}
1503
- */
1504
- get get_double() {
1505
- const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
1506
- return ret >>> 0;
1507
- }
1508
- /**
1509
- * @returns {number}
1510
- */
1511
- get get_cl() {
1512
- const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
1513
- return ret >>> 0;
1514
- }
1515
- /**
1516
- * @returns {number}
1517
- */
1518
- get get_flag() {
1519
- const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
1520
- return ret >>> 0;
1521
- }
1522
- /**
1523
- * @returns {number}
1524
- */
1525
- get get_bbbv_solved() {
1526
- const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
1527
- return ret >>> 0;
1528
- }
1529
- /**
1530
- * @returns {number}
1531
- */
1532
- get get_ce() {
1533
- const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
1534
- return ret >>> 0;
1535
- }
1536
- /**
1537
- * @returns {number}
1538
- */
1539
- get get_left_s() {
1540
- const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
1541
- return ret;
1542
- }
1543
- /**
1544
- * @returns {number}
1545
- */
1546
- get get_right_s() {
1547
- const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
1548
- return ret;
1549
- }
1550
- /**
1551
- * @returns {number}
1552
- */
1553
- get get_double_s() {
1554
- const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
1555
- return ret;
1556
- }
1557
- /**
1558
- * @returns {number}
1559
- */
1560
- get get_cl_s() {
1561
- const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
1562
- return ret;
1563
- }
1564
- /**
1565
- * @returns {number}
1566
- */
1567
- get get_flag_s() {
1568
- const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
1569
- return ret;
1570
- }
1571
- /**
1572
- * @returns {number}
1573
- */
1574
- get get_path() {
1575
- const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
1576
- return ret;
1577
- }
1578
- /**
1579
- * @returns {number}
1580
- */
1581
- get get_ce_s() {
1582
- const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
1583
- return ret;
1584
- }
1585
- /**
1586
- * @returns {number}
1587
- */
1588
- get get_ioe() {
1589
- const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
1590
- return ret;
1591
- }
1592
- /**
1593
- * @returns {number}
1594
- */
1595
- get get_thrp() {
1596
- const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
1597
- return ret;
1598
- }
1599
- /**
1600
- * @returns {number}
1601
- */
1602
- get get_corr() {
1603
- const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
1604
- return ret;
1605
- }
1606
- /**
1607
- * @returns {number}
1608
- */
1609
- get get_events_len() {
1610
- const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
1611
- return ret >>> 0;
1612
- }
1613
- /**
1614
- * @param {number} index
1615
- * @returns {number}
1616
- */
1617
- events_time(index) {
1618
- const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
1619
- return ret;
1620
- }
1621
- /**
1622
- * @param {number} index
1623
- * @returns {string}
1624
- */
1625
- events_mouse(index) {
1626
- let deferred1_0;
1627
- let deferred1_1;
1628
- try {
1629
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1630
- wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
1631
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1632
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1633
- deferred1_0 = r0;
1634
- deferred1_1 = r1;
1635
- return getStringFromWasm0(r0, r1);
1636
- } finally {
1637
- wasm.__wbindgen_add_to_stack_pointer(16);
1638
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1639
- }
1640
- }
1641
- /**
1642
- * @param {number} index
1643
- * @returns {number}
1644
- */
1645
- events_x(index) {
1646
- const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
1647
- return ret;
1648
- }
1649
- /**
1650
- * @param {number} index
1651
- * @returns {number}
1652
- */
1653
- events_y(index) {
1654
- const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
1655
- return ret;
1656
- }
1657
- /**
1658
- * @param {number} index
1659
- * @returns {number}
1660
- */
1661
- events_useful_level(index) {
1662
- const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
1663
- return ret;
1664
- }
1665
- /**
1666
- * @param {number} index
1667
- * @returns {number}
1668
- */
1669
- events_mouse_state(index) {
1670
- const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
1671
- return ret >>> 0;
1672
- }
1673
- /**
1674
- * @returns {number}
1675
- */
1676
- get get_current_event_id() {
1677
- const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
1678
- return ret >>> 0;
1679
- }
1680
- /**
1681
- * @param {number} id
1682
- */
1683
- set current_event_id(id) {
1684
- wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
1685
- }
1686
- /**
1687
- * @returns {string}
1688
- */
1689
- get get_game_board() {
1690
- let deferred1_0;
1691
- let deferred1_1;
1692
- try {
1693
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1694
- wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
1695
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1696
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1697
- deferred1_0 = r0;
1698
- deferred1_1 = r1;
1699
- return getStringFromWasm0(r0, r1);
1700
- } finally {
1701
- wasm.__wbindgen_add_to_stack_pointer(16);
1702
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1703
- }
1704
- }
1705
- /**
1706
- * @returns {string}
1707
- */
1708
- get get_game_board_poss() {
1709
- let deferred1_0;
1710
- let deferred1_1;
1711
- try {
1712
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1713
- wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
1714
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1715
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1716
- deferred1_0 = r0;
1717
- deferred1_1 = r1;
1718
- return getStringFromWasm0(r0, r1);
1719
- } finally {
1720
- wasm.__wbindgen_add_to_stack_pointer(16);
1721
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1722
- }
1723
- }
1724
- /**
1725
- * @returns {number}
1726
- */
1727
- get get_mouse_state() {
1728
- const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
1729
- return ret >>> 0;
1730
- }
1731
- /**
1732
- * 局面状态
1733
- * @returns {number}
1734
- */
1735
- get get_game_board_state() {
1736
- const ret = wasm.evfvideo_get_game_board_state(this.__wbg_ptr);
1737
- return ret >>> 0;
1738
- }
1739
- /**
1740
- * 返回当前光标的位置,播放录像用
1741
- * @returns {CursorPos}
1742
- */
1743
- get get_x_y() {
1744
- const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
1745
- return CursorPos.__wrap(ret);
1746
- }
1747
- /**
1748
- * @returns {Uint8Array}
1749
- */
1750
- get get_checksum() {
1751
- try {
1752
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1753
- wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
1754
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1755
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1756
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1757
- wasm.__wbindgen_free(r0, r1 * 1);
1758
- return v1;
1759
- } finally {
1760
- wasm.__wbindgen_add_to_stack_pointer(16);
1761
- }
1762
- }
1763
- /**
1764
- * @param {number} time
1765
- */
1766
- set current_time(time) {
1767
- wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
1768
- }
1769
- /**
1770
- * @returns {number}
1771
- */
1772
- is_valid() {
1773
- const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
1774
- return ret;
1775
- }
1776
- }
1777
- module.exports.EvfVideo = EvfVideo;
1778
- /**
1779
- */
1780
- class MinesweeperBoard {
1781
-
1782
- static __wrap(ptr) {
1783
- ptr = ptr >>> 0;
1784
- const obj = Object.create(MinesweeperBoard.prototype);
1785
- obj.__wbg_ptr = ptr;
1786
-
1787
- return obj;
1788
- }
1789
-
1790
- toJSON() {
1791
- return {
1792
- get_board: this.get_board,
1793
- get_game_board: this.get_game_board,
1794
- get_left: this.get_left,
1795
- get_right: this.get_right,
1796
- get_double: this.get_double,
1797
- get_ce: this.get_ce,
1798
- get_flag: this.get_flag,
1799
- get_bbbv_solved: this.get_bbbv_solved,
1800
- get_row: this.get_row,
1801
- get_column: this.get_column,
1802
- get_game_board_state: this.get_game_board_state,
1803
- get_mouse_state: this.get_mouse_state,
1804
- };
1805
- }
1806
-
1807
- toString() {
1808
- return JSON.stringify(this);
1809
- }
1810
-
1811
- [inspect.custom]() {
1812
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
1813
- }
1814
-
1815
- __destroy_into_raw() {
1816
- const ptr = this.__wbg_ptr;
1817
- this.__wbg_ptr = 0;
1818
-
1819
- return ptr;
1820
- }
1821
-
1822
- free() {
1823
- const ptr = this.__destroy_into_raw();
1824
- wasm.__wbg_minesweeperboard_free(ptr);
1825
- }
1826
- /**
1827
- * @param {string} board
1828
- * @returns {MinesweeperBoard}
1829
- */
1830
- static new(board) {
1831
- const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1832
- const len0 = WASM_VECTOR_LEN;
1833
- const ret = wasm.minesweeperboard_new(ptr0, len0);
1834
- return MinesweeperBoard.__wrap(ret);
1835
- }
1836
- /**
1837
- * @param {string} e
1838
- * @param {number} x
1839
- * @param {number} y
1840
- */
1841
- step(e, x, y) {
1842
- const ptr0 = passStringToWasm0(e, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1843
- const len0 = WASM_VECTOR_LEN;
1844
- wasm.minesweeperboard_step(this.__wbg_ptr, ptr0, len0, x, y);
1845
- }
1846
- /**
1847
- * @param {string} operation
1848
- */
1849
- step_flow(operation) {
1850
- const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1851
- const len0 = WASM_VECTOR_LEN;
1852
- wasm.minesweeperboard_step_flow(this.__wbg_ptr, ptr0, len0);
1853
- }
1854
- /**
1855
- * @param {string} board
1856
- */
1857
- set board(board) {
1858
- const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1859
- const len0 = WASM_VECTOR_LEN;
1860
- wasm.minesweeperboard_set_board(this.__wbg_ptr, ptr0, len0);
1861
- }
1862
- /**
1863
- * @param {string} game_board
1864
- */
1865
- set game_board(game_board) {
1866
- const ptr0 = passStringToWasm0(game_board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1867
- const len0 = WASM_VECTOR_LEN;
1868
- wasm.minesweeperboard_set_game_board(this.__wbg_ptr, ptr0, len0);
1869
- }
1870
- /**
1871
- * @returns {string}
1872
- */
1873
- get get_board() {
1874
- let deferred1_0;
1875
- let deferred1_1;
1876
- try {
1877
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1878
- wasm.minesweeperboard_get_board(retptr, this.__wbg_ptr);
1879
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1880
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1881
- deferred1_0 = r0;
1882
- deferred1_1 = r1;
1883
- return getStringFromWasm0(r0, r1);
1884
- } finally {
1885
- wasm.__wbindgen_add_to_stack_pointer(16);
1886
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1887
- }
1888
- }
1889
- /**
1890
- * @returns {string}
1891
- */
1892
- get get_game_board() {
1893
- let deferred1_0;
1894
- let deferred1_1;
1895
- try {
1896
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1897
- wasm.minesweeperboard_get_game_board(retptr, this.__wbg_ptr);
1898
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1899
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1900
- deferred1_0 = r0;
1901
- deferred1_1 = r1;
1902
- return getStringFromWasm0(r0, r1);
1903
- } finally {
1904
- wasm.__wbindgen_add_to_stack_pointer(16);
1905
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1906
- }
1907
- }
1908
- /**
1909
- * @returns {number}
1910
- */
1911
- get get_left() {
1912
- const ret = wasm.minesweeperboard_get_left(this.__wbg_ptr);
1913
- return ret >>> 0;
1914
- }
1915
- /**
1916
- * @returns {number}
1917
- */
1918
- get get_right() {
1919
- const ret = wasm.minesweeperboard_get_right(this.__wbg_ptr);
1920
- return ret >>> 0;
1921
- }
1922
- /**
1923
- * @returns {number}
1924
- */
1925
- get get_double() {
1926
- const ret = wasm.minesweeperboard_get_double(this.__wbg_ptr);
1927
- return ret >>> 0;
1928
- }
1929
- /**
1930
- * @returns {number}
1931
- */
1932
- get get_ce() {
1933
- const ret = wasm.minesweeperboard_get_ce(this.__wbg_ptr);
1934
- return ret >>> 0;
1935
- }
1936
- /**
1937
- * @returns {number}
1938
- */
1939
- get get_flag() {
1940
- const ret = wasm.minesweeperboard_get_flag(this.__wbg_ptr);
1941
- return ret >>> 0;
1942
- }
1943
- /**
1944
- * @returns {number}
1945
- */
1946
- get get_bbbv_solved() {
1947
- const ret = wasm.minesweeperboard_get_bbbv_solved(this.__wbg_ptr);
1948
- return ret >>> 0;
1949
- }
1950
- /**
1951
- * @returns {number}
1952
- */
1953
- get get_row() {
1954
- const ret = wasm.minesweeperboard_get_row(this.__wbg_ptr);
1955
- return ret >>> 0;
1956
- }
1957
- /**
1958
- * @returns {number}
1959
- */
1960
- get get_column() {
1961
- const ret = wasm.minesweeperboard_get_column(this.__wbg_ptr);
1962
- return ret >>> 0;
1963
- }
1964
- /**
1965
- * @returns {number}
1966
- */
1967
- get get_game_board_state() {
1968
- const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
1969
- return ret >>> 0;
1970
- }
1971
- /**
1972
- * @returns {number}
1973
- */
1974
- get get_mouse_state() {
1975
- const ret = wasm.minesweeperboard_get_mouse_state(this.__wbg_ptr);
1976
- return ret >>> 0;
1977
- }
1978
- }
1979
- module.exports.MinesweeperBoard = MinesweeperBoard;
1980
- /**
1981
- */
1982
- class MvfVideo {
1983
-
1984
- static __wrap(ptr) {
1985
- ptr = ptr >>> 0;
1986
- const obj = Object.create(MvfVideo.prototype);
1987
- obj.__wbg_ptr = ptr;
1988
-
1989
- return obj;
1990
- }
1991
-
1992
- toJSON() {
1993
- return {
1994
- get_raw_data: this.get_raw_data,
1995
- get_software: this.get_software,
1996
- get_row: this.get_row,
1997
- get_column: this.get_column,
1998
- get_level: this.get_level,
1999
- get_mode: this.get_mode,
2000
- get_is_completed: this.get_is_completed,
2001
- get_is_offical: this.get_is_offical,
2002
- get_is_fair: this.get_is_fair,
2003
- get_mine_num: this.get_mine_num,
2004
- get_player_designator: this.get_player_designator,
2005
- get_race_designator: this.get_race_designator,
2006
- get_uniqueness_designator: this.get_uniqueness_designator,
2007
- get_country: this.get_country,
2008
- get_bbbv: this.get_bbbv,
2009
- get_start_time: this.get_start_time,
2010
- get_end_time: this.get_end_time,
2011
- get_op: this.get_op,
2012
- get_isl: this.get_isl,
2013
- get_hizi: this.get_hizi,
2014
- get_cell0: this.get_cell0,
2015
- get_cell1: this.get_cell1,
2016
- get_cell2: this.get_cell2,
2017
- get_cell3: this.get_cell3,
2018
- get_cell4: this.get_cell4,
2019
- get_cell5: this.get_cell5,
2020
- get_cell6: this.get_cell6,
2021
- get_cell7: this.get_cell7,
2022
- get_cell8: this.get_cell8,
2023
- get_rtime: this.get_rtime,
2024
- get_rtime_ms: this.get_rtime_ms,
2025
- get_etime: this.get_etime,
2026
- get_video_time: this.get_video_time,
2027
- get_bbbv_s: this.get_bbbv_s,
2028
- get_stnb: this.get_stnb,
2029
- get_rqp: this.get_rqp,
2030
- get_left: this.get_left,
2031
- get_right: this.get_right,
2032
- get_double: this.get_double,
2033
- get_cl: this.get_cl,
2034
- get_flag: this.get_flag,
2035
- get_bbbv_solved: this.get_bbbv_solved,
2036
- get_ce: this.get_ce,
2037
- get_left_s: this.get_left_s,
2038
- get_right_s: this.get_right_s,
2039
- get_double_s: this.get_double_s,
2040
- get_cl_s: this.get_cl_s,
2041
- get_flag_s: this.get_flag_s,
2042
- get_path: this.get_path,
2043
- get_ce_s: this.get_ce_s,
2044
- get_ioe: this.get_ioe,
2045
- get_thrp: this.get_thrp,
2046
- get_corr: this.get_corr,
2047
- get_events_len: this.get_events_len,
2048
- get_current_event_id: this.get_current_event_id,
2049
- get_game_board: this.get_game_board,
2050
- get_game_board_poss: this.get_game_board_poss,
2051
- get_mouse_state: this.get_mouse_state,
2052
- get_game_board_state: this.get_game_board_state,
2053
- get_x_y: this.get_x_y,
2054
- get_checksum: this.get_checksum,
2055
- };
2056
- }
2057
-
2058
- toString() {
2059
- return JSON.stringify(this);
2060
- }
2061
-
2062
- [inspect.custom]() {
2063
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
2064
- }
2065
-
2066
- __destroy_into_raw() {
2067
- const ptr = this.__wbg_ptr;
2068
- this.__wbg_ptr = 0;
2069
-
2070
- return ptr;
2071
- }
2072
-
2073
- free() {
2074
- const ptr = this.__destroy_into_raw();
2075
- wasm.__wbg_mvfvideo_free(ptr);
2076
- }
2077
- /**
2078
- * @param {Uint8Array} data
2079
- * @param {string} file_name
2080
- * @returns {MvfVideo}
2081
- */
2082
- static new(data, file_name) {
2083
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2084
- const len0 = WASM_VECTOR_LEN;
2085
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2086
- const len1 = WASM_VECTOR_LEN;
2087
- const ret = wasm.mvfvideo_new(ptr0, len0, ptr1, len1);
2088
- return MvfVideo.__wrap(ret);
2089
- }
2090
- /**
2091
- */
2092
- parse_video() {
2093
- wasm.mvfvideo_parse_video(this.__wbg_ptr);
2094
- }
2095
- /**
2096
- */
2097
- analyse() {
2098
- wasm.avfvideo_analyse(this.__wbg_ptr);
2099
- }
2100
- /**
2101
- * @returns {Uint8Array}
2102
- */
2103
- get get_raw_data() {
2104
- try {
2105
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2106
- wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
2107
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2108
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2109
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2110
- wasm.__wbindgen_free(r0, r1 * 1);
2111
- return v1;
2112
- } finally {
2113
- wasm.__wbindgen_add_to_stack_pointer(16);
2114
- }
2115
- }
2116
- /**
2117
- * @returns {Uint8Array}
2118
- */
2119
- get get_software() {
2120
- try {
2121
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2122
- wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
2123
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2124
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2125
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2126
- wasm.__wbindgen_free(r0, r1 * 1);
2127
- return v1;
2128
- } finally {
2129
- wasm.__wbindgen_add_to_stack_pointer(16);
2130
- }
2131
- }
2132
- /**
2133
- * @returns {number}
2134
- */
2135
- get get_row() {
2136
- const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
2137
- return ret >>> 0;
2138
- }
2139
- /**
2140
- * @returns {number}
2141
- */
2142
- get get_column() {
2143
- const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
2144
- return ret >>> 0;
2145
- }
2146
- /**
2147
- * @returns {number}
2148
- */
2149
- get get_level() {
2150
- const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
2151
- return ret;
2152
- }
2153
- /**
2154
- * @returns {number}
2155
- */
2156
- get get_mode() {
2157
- const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
2158
- return ret;
2159
- }
2160
- /**
2161
- * @returns {boolean}
2162
- */
2163
- get get_is_completed() {
2164
- const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
2165
- return ret !== 0;
2166
- }
2167
- /**
2168
- * @returns {boolean}
2169
- */
2170
- get get_is_offical() {
2171
- const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
2172
- return ret !== 0;
2173
- }
2174
- /**
2175
- * @returns {boolean}
2176
- */
2177
- get get_is_fair() {
2178
- const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
2179
- return ret !== 0;
2180
- }
2181
- /**
2182
- * @returns {number}
2183
- */
2184
- get get_mine_num() {
2185
- const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
2186
- return ret >>> 0;
2187
- }
2188
- /**
2189
- * @returns {Uint8Array}
2190
- */
2191
- get get_player_designator() {
2192
- try {
2193
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2194
- wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
2195
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2196
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2197
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2198
- wasm.__wbindgen_free(r0, r1 * 1);
2199
- return v1;
2200
- } finally {
2201
- wasm.__wbindgen_add_to_stack_pointer(16);
2202
- }
2203
- }
2204
- /**
2205
- * @returns {Uint8Array}
2206
- */
2207
- get get_race_designator() {
2208
- try {
2209
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2210
- wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
2211
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2212
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2213
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2214
- wasm.__wbindgen_free(r0, r1 * 1);
2215
- return v1;
2216
- } finally {
2217
- wasm.__wbindgen_add_to_stack_pointer(16);
2218
- }
2219
- }
2220
- /**
2221
- * @returns {Uint8Array}
2222
- */
2223
- get get_uniqueness_designator() {
2224
- try {
2225
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2226
- wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
2227
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2228
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2229
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2230
- wasm.__wbindgen_free(r0, r1 * 1);
2231
- return v1;
2232
- } finally {
2233
- wasm.__wbindgen_add_to_stack_pointer(16);
2234
- }
2235
- }
2236
- /**
2237
- * @returns {Uint8Array}
2238
- */
2239
- get get_country() {
2240
- try {
2241
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2242
- wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
2243
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2244
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2245
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2246
- wasm.__wbindgen_free(r0, r1 * 1);
2247
- return v1;
2248
- } finally {
2249
- wasm.__wbindgen_add_to_stack_pointer(16);
2250
- }
2251
- }
2252
- /**
2253
- * @returns {number}
2254
- */
2255
- get get_bbbv() {
2256
- const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
2257
- return ret >>> 0;
2258
- }
2259
- /**
2260
- * @returns {Uint8Array}
2261
- */
2262
- get get_start_time() {
2263
- try {
2264
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2265
- wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
2266
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2267
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2268
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2269
- wasm.__wbindgen_free(r0, r1 * 1);
2270
- return v1;
2271
- } finally {
2272
- wasm.__wbindgen_add_to_stack_pointer(16);
2273
- }
2274
- }
2275
- /**
2276
- * @returns {Uint8Array}
2277
- */
2278
- get get_end_time() {
2279
- try {
2280
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2281
- wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
2282
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2283
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2284
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2285
- wasm.__wbindgen_free(r0, r1 * 1);
2286
- return v1;
2287
- } finally {
2288
- wasm.__wbindgen_add_to_stack_pointer(16);
2289
- }
2290
- }
2291
- /**
2292
- * @returns {number}
2293
- */
2294
- get get_op() {
2295
- const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
2296
- return ret >>> 0;
2297
- }
2298
- /**
2299
- * @returns {number}
2300
- */
2301
- get get_isl() {
2302
- const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
2303
- return ret >>> 0;
2304
- }
2305
- /**
2306
- * @returns {number}
2307
- */
2308
- get get_hizi() {
2309
- const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
2310
- return ret >>> 0;
2311
- }
2312
- /**
2313
- * @returns {number}
2314
- */
2315
- get get_cell0() {
2316
- const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
2317
- return ret >>> 0;
2318
- }
2319
- /**
2320
- * @returns {number}
2321
- */
2322
- get get_cell1() {
2323
- const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
2324
- return ret >>> 0;
2325
- }
2326
- /**
2327
- * @returns {number}
2328
- */
2329
- get get_cell2() {
2330
- const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
2331
- return ret >>> 0;
2332
- }
2333
- /**
2334
- * @returns {number}
2335
- */
2336
- get get_cell3() {
2337
- const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
2338
- return ret >>> 0;
2339
- }
2340
- /**
2341
- * @returns {number}
2342
- */
2343
- get get_cell4() {
2344
- const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
2345
- return ret >>> 0;
2346
- }
2347
- /**
2348
- * @returns {number}
2349
- */
2350
- get get_cell5() {
2351
- const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
2352
- return ret >>> 0;
2353
- }
2354
- /**
2355
- * @returns {number}
2356
- */
2357
- get get_cell6() {
2358
- const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
2359
- return ret >>> 0;
2360
- }
2361
- /**
2362
- * @returns {number}
2363
- */
2364
- get get_cell7() {
2365
- const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
2366
- return ret >>> 0;
2367
- }
2368
- /**
2369
- * @returns {number}
2370
- */
2371
- get get_cell8() {
2372
- const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
2373
- return ret >>> 0;
2374
- }
2375
- /**
2376
- * @returns {number}
2377
- */
2378
- get get_rtime() {
2379
- const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
2380
- return ret;
2381
- }
2382
- /**
2383
- * @returns {number}
2384
- */
2385
- get get_rtime_ms() {
2386
- const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
2387
- return ret >>> 0;
2388
- }
2389
- /**
2390
- * @returns {number}
2391
- */
2392
- get get_etime() {
2393
- const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
2394
- return ret;
2395
- }
2396
- /**
2397
- * @returns {number}
2398
- */
2399
- get get_video_time() {
2400
- const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
2401
- return ret;
2402
- }
2403
- /**
2404
- * @returns {number}
2405
- */
2406
- get get_bbbv_s() {
2407
- const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
2408
- return ret;
2409
- }
2410
- /**
2411
- * @returns {number}
2412
- */
2413
- get get_stnb() {
2414
- const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
2415
- return ret;
2416
- }
2417
- /**
2418
- * @returns {number}
2419
- */
2420
- get get_rqp() {
2421
- const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
2422
- return ret;
2423
- }
2424
- /**
2425
- * @returns {number}
2426
- */
2427
- get get_left() {
2428
- const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
2429
- return ret >>> 0;
2430
- }
2431
- /**
2432
- * @returns {number}
2433
- */
2434
- get get_right() {
2435
- const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
2436
- return ret >>> 0;
2437
- }
2438
- /**
2439
- * @returns {number}
2440
- */
2441
- get get_double() {
2442
- const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
2443
- return ret >>> 0;
2444
- }
2445
- /**
2446
- * @returns {number}
2447
- */
2448
- get get_cl() {
2449
- const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
2450
- return ret >>> 0;
2451
- }
2452
- /**
2453
- * @returns {number}
2454
- */
2455
- get get_flag() {
2456
- const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
2457
- return ret >>> 0;
2458
- }
2459
- /**
2460
- * @returns {number}
2461
- */
2462
- get get_bbbv_solved() {
2463
- const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
2464
- return ret >>> 0;
2465
- }
2466
- /**
2467
- * @returns {number}
2468
- */
2469
- get get_ce() {
2470
- const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
2471
- return ret >>> 0;
2472
- }
2473
- /**
2474
- * @returns {number}
2475
- */
2476
- get get_left_s() {
2477
- const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
2478
- return ret;
2479
- }
2480
- /**
2481
- * @returns {number}
2482
- */
2483
- get get_right_s() {
2484
- const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
2485
- return ret;
2486
- }
2487
- /**
2488
- * @returns {number}
2489
- */
2490
- get get_double_s() {
2491
- const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
2492
- return ret;
2493
- }
2494
- /**
2495
- * @returns {number}
2496
- */
2497
- get get_cl_s() {
2498
- const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
2499
- return ret;
2500
- }
2501
- /**
2502
- * @returns {number}
2503
- */
2504
- get get_flag_s() {
2505
- const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
2506
- return ret;
2507
- }
2508
- /**
2509
- * @returns {number}
2510
- */
2511
- get get_path() {
2512
- const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
2513
- return ret;
2514
- }
2515
- /**
2516
- * @returns {number}
2517
- */
2518
- get get_ce_s() {
2519
- const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
2520
- return ret;
2521
- }
2522
- /**
2523
- * @returns {number}
2524
- */
2525
- get get_ioe() {
2526
- const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
2527
- return ret;
2528
- }
2529
- /**
2530
- * @returns {number}
2531
- */
2532
- get get_thrp() {
2533
- const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
2534
- return ret;
2535
- }
2536
- /**
2537
- * @returns {number}
2538
- */
2539
- get get_corr() {
2540
- const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
2541
- return ret;
2542
- }
2543
- /**
2544
- * @returns {number}
2545
- */
2546
- get get_events_len() {
2547
- const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
2548
- return ret >>> 0;
2549
- }
2550
- /**
2551
- * @param {number} index
2552
- * @returns {number}
2553
- */
2554
- events_time(index) {
2555
- const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
2556
- return ret;
2557
- }
2558
- /**
2559
- * @param {number} index
2560
- * @returns {string}
2561
- */
2562
- events_mouse(index) {
2563
- let deferred1_0;
2564
- let deferred1_1;
2565
- try {
2566
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2567
- wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
2568
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2569
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2570
- deferred1_0 = r0;
2571
- deferred1_1 = r1;
2572
- return getStringFromWasm0(r0, r1);
2573
- } finally {
2574
- wasm.__wbindgen_add_to_stack_pointer(16);
2575
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2576
- }
2577
- }
2578
- /**
2579
- * @param {number} index
2580
- * @returns {number}
2581
- */
2582
- events_x(index) {
2583
- const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
2584
- return ret;
2585
- }
2586
- /**
2587
- * @param {number} index
2588
- * @returns {number}
2589
- */
2590
- events_y(index) {
2591
- const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
2592
- return ret;
2593
- }
2594
- /**
2595
- * @param {number} index
2596
- * @returns {number}
2597
- */
2598
- events_useful_level(index) {
2599
- const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
2600
- return ret;
2601
- }
2602
- /**
2603
- * @param {number} index
2604
- * @returns {number}
2605
- */
2606
- events_mouse_state(index) {
2607
- const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
2608
- return ret >>> 0;
2609
- }
2610
- /**
2611
- * @returns {number}
2612
- */
2613
- get get_current_event_id() {
2614
- const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
2615
- return ret >>> 0;
2616
- }
2617
- /**
2618
- * @param {number} id
2619
- */
2620
- set current_event_id(id) {
2621
- wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
2622
- }
2623
- /**
2624
- * @returns {string}
2625
- */
2626
- get get_game_board() {
2627
- let deferred1_0;
2628
- let deferred1_1;
2629
- try {
2630
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2631
- wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
2632
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2633
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2634
- deferred1_0 = r0;
2635
- deferred1_1 = r1;
2636
- return getStringFromWasm0(r0, r1);
2637
- } finally {
2638
- wasm.__wbindgen_add_to_stack_pointer(16);
2639
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2640
- }
2641
- }
2642
- /**
2643
- * @returns {string}
2644
- */
2645
- get get_game_board_poss() {
2646
- let deferred1_0;
2647
- let deferred1_1;
2648
- try {
2649
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2650
- wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
2651
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2652
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2653
- deferred1_0 = r0;
2654
- deferred1_1 = r1;
2655
- return getStringFromWasm0(r0, r1);
2656
- } finally {
2657
- wasm.__wbindgen_add_to_stack_pointer(16);
2658
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2659
- }
2660
- }
2661
- /**
2662
- * @returns {number}
2663
- */
2664
- get get_mouse_state() {
2665
- const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
2666
- return ret >>> 0;
2667
- }
2668
- /**
2669
- * 局面状态
2670
- * @returns {number}
2671
- */
2672
- get get_game_board_state() {
2673
- const ret = wasm.mvfvideo_get_game_board_state(this.__wbg_ptr);
2674
- return ret >>> 0;
2675
- }
2676
- /**
2677
- * 返回当前光标的位置,播放录像用
2678
- * @returns {CursorPos}
2679
- */
2680
- get get_x_y() {
2681
- const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
2682
- return CursorPos.__wrap(ret);
2683
- }
2684
- /**
2685
- * @returns {Uint8Array}
2686
- */
2687
- get get_checksum() {
2688
- try {
2689
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2690
- wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
2691
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2692
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2693
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2694
- wasm.__wbindgen_free(r0, r1 * 1);
2695
- return v1;
2696
- } finally {
2697
- wasm.__wbindgen_add_to_stack_pointer(16);
2698
- }
2699
- }
2700
- /**
2701
- * @param {number} time
2702
- */
2703
- set current_time(time) {
2704
- wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
2705
- }
2706
- /**
2707
- * @returns {number}
2708
- */
2709
- is_valid() {
2710
- const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
2711
- return ret;
2712
- }
2713
- }
2714
- module.exports.MvfVideo = MvfVideo;
2715
- /**
2716
- */
2717
- class RmvVideo {
2718
-
2719
- static __wrap(ptr) {
2720
- ptr = ptr >>> 0;
2721
- const obj = Object.create(RmvVideo.prototype);
2722
- obj.__wbg_ptr = ptr;
2723
-
2724
- return obj;
2725
- }
2726
-
2727
- toJSON() {
2728
- return {
2729
- get_raw_data: this.get_raw_data,
2730
- get_software: this.get_software,
2731
- get_row: this.get_row,
2732
- get_column: this.get_column,
2733
- get_level: this.get_level,
2734
- get_mode: this.get_mode,
2735
- get_is_completed: this.get_is_completed,
2736
- get_is_offical: this.get_is_offical,
2737
- get_is_fair: this.get_is_fair,
2738
- get_mine_num: this.get_mine_num,
2739
- get_player_designator: this.get_player_designator,
2740
- get_race_designator: this.get_race_designator,
2741
- get_uniqueness_designator: this.get_uniqueness_designator,
2742
- get_country: this.get_country,
2743
- get_bbbv: this.get_bbbv,
2744
- get_start_time: this.get_start_time,
2745
- get_end_time: this.get_end_time,
2746
- get_op: this.get_op,
2747
- get_isl: this.get_isl,
2748
- get_hizi: this.get_hizi,
2749
- get_cell0: this.get_cell0,
2750
- get_cell1: this.get_cell1,
2751
- get_cell2: this.get_cell2,
2752
- get_cell3: this.get_cell3,
2753
- get_cell4: this.get_cell4,
2754
- get_cell5: this.get_cell5,
2755
- get_cell6: this.get_cell6,
2756
- get_cell7: this.get_cell7,
2757
- get_cell8: this.get_cell8,
2758
- get_rtime: this.get_rtime,
2759
- get_rtime_ms: this.get_rtime_ms,
2760
- get_etime: this.get_etime,
2761
- get_video_time: this.get_video_time,
2762
- get_bbbv_s: this.get_bbbv_s,
2763
- get_stnb: this.get_stnb,
2764
- get_rqp: this.get_rqp,
2765
- get_left: this.get_left,
2766
- get_right: this.get_right,
2767
- get_double: this.get_double,
2768
- get_cl: this.get_cl,
2769
- get_flag: this.get_flag,
2770
- get_bbbv_solved: this.get_bbbv_solved,
2771
- get_ce: this.get_ce,
2772
- get_left_s: this.get_left_s,
2773
- get_right_s: this.get_right_s,
2774
- get_double_s: this.get_double_s,
2775
- get_cl_s: this.get_cl_s,
2776
- get_flag_s: this.get_flag_s,
2777
- get_path: this.get_path,
2778
- get_ce_s: this.get_ce_s,
2779
- get_ioe: this.get_ioe,
2780
- get_thrp: this.get_thrp,
2781
- get_corr: this.get_corr,
2782
- get_events_len: this.get_events_len,
2783
- get_current_event_id: this.get_current_event_id,
2784
- get_game_board: this.get_game_board,
2785
- get_game_board_poss: this.get_game_board_poss,
2786
- get_mouse_state: this.get_mouse_state,
2787
- get_game_board_state: this.get_game_board_state,
2788
- get_x_y: this.get_x_y,
2789
- get_checksum: this.get_checksum,
2790
- };
2791
- }
2792
-
2793
- toString() {
2794
- return JSON.stringify(this);
2795
- }
2796
-
2797
- [inspect.custom]() {
2798
- return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
2799
- }
2800
-
2801
- __destroy_into_raw() {
2802
- const ptr = this.__wbg_ptr;
2803
- this.__wbg_ptr = 0;
2804
-
2805
- return ptr;
2806
- }
2807
-
2808
- free() {
2809
- const ptr = this.__destroy_into_raw();
2810
- wasm.__wbg_rmvvideo_free(ptr);
2811
- }
2812
- /**
2813
- * @param {Uint8Array} data
2814
- * @param {string} file_name
2815
- * @returns {RmvVideo}
2816
- */
2817
- static new(data, file_name) {
2818
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2819
- const len0 = WASM_VECTOR_LEN;
2820
- const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2821
- const len1 = WASM_VECTOR_LEN;
2822
- const ret = wasm.rmvvideo_new(ptr0, len0, ptr1, len1);
2823
- return RmvVideo.__wrap(ret);
2824
- }
2825
- /**
2826
- */
2827
- parse_video() {
2828
- wasm.rmvvideo_parse_video(this.__wbg_ptr);
2829
- }
2830
- /**
2831
- */
2832
- analyse() {
2833
- wasm.avfvideo_analyse(this.__wbg_ptr);
2834
- }
2835
- /**
2836
- * @returns {Uint8Array}
2837
- */
2838
- get get_raw_data() {
2839
- try {
2840
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2841
- wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
2842
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2843
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2844
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2845
- wasm.__wbindgen_free(r0, r1 * 1);
2846
- return v1;
2847
- } finally {
2848
- wasm.__wbindgen_add_to_stack_pointer(16);
2849
- }
2850
- }
2851
- /**
2852
- * @returns {Uint8Array}
2853
- */
2854
- get get_software() {
2855
- try {
2856
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2857
- wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
2858
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2859
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2860
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2861
- wasm.__wbindgen_free(r0, r1 * 1);
2862
- return v1;
2863
- } finally {
2864
- wasm.__wbindgen_add_to_stack_pointer(16);
2865
- }
2866
- }
2867
- /**
2868
- * @returns {number}
2869
- */
2870
- get get_row() {
2871
- const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
2872
- return ret >>> 0;
2873
- }
2874
- /**
2875
- * @returns {number}
2876
- */
2877
- get get_column() {
2878
- const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
2879
- return ret >>> 0;
2880
- }
2881
- /**
2882
- * @returns {number}
2883
- */
2884
- get get_level() {
2885
- const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
2886
- return ret;
2887
- }
2888
- /**
2889
- * @returns {number}
2890
- */
2891
- get get_mode() {
2892
- const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
2893
- return ret;
2894
- }
2895
- /**
2896
- * @returns {boolean}
2897
- */
2898
- get get_is_completed() {
2899
- const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
2900
- return ret !== 0;
2901
- }
2902
- /**
2903
- * @returns {boolean}
2904
- */
2905
- get get_is_offical() {
2906
- const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
2907
- return ret !== 0;
2908
- }
2909
- /**
2910
- * @returns {boolean}
2911
- */
2912
- get get_is_fair() {
2913
- const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
2914
- return ret !== 0;
2915
- }
2916
- /**
2917
- * @returns {number}
2918
- */
2919
- get get_mine_num() {
2920
- const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
2921
- return ret >>> 0;
2922
- }
2923
- /**
2924
- * @returns {Uint8Array}
2925
- */
2926
- get get_player_designator() {
2927
- try {
2928
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2929
- wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
2930
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2931
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2932
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2933
- wasm.__wbindgen_free(r0, r1 * 1);
2934
- return v1;
2935
- } finally {
2936
- wasm.__wbindgen_add_to_stack_pointer(16);
2937
- }
2938
- }
2939
- /**
2940
- * @returns {Uint8Array}
2941
- */
2942
- get get_race_designator() {
2943
- try {
2944
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2945
- wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
2946
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2947
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2948
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2949
- wasm.__wbindgen_free(r0, r1 * 1);
2950
- return v1;
2951
- } finally {
2952
- wasm.__wbindgen_add_to_stack_pointer(16);
2953
- }
2954
- }
2955
- /**
2956
- * @returns {Uint8Array}
2957
- */
2958
- get get_uniqueness_designator() {
2959
- try {
2960
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2961
- wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
2962
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2963
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2964
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2965
- wasm.__wbindgen_free(r0, r1 * 1);
2966
- return v1;
2967
- } finally {
2968
- wasm.__wbindgen_add_to_stack_pointer(16);
2969
- }
2970
- }
2971
- /**
2972
- * @returns {Uint8Array}
2973
- */
2974
- get get_country() {
2975
- try {
2976
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2977
- wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
2978
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2979
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2980
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2981
- wasm.__wbindgen_free(r0, r1 * 1);
2982
- return v1;
2983
- } finally {
2984
- wasm.__wbindgen_add_to_stack_pointer(16);
2985
- }
2986
- }
2987
- /**
2988
- * @returns {number}
2989
- */
2990
- get get_bbbv() {
2991
- const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
2992
- return ret >>> 0;
2993
- }
2994
- /**
2995
- * @returns {Uint8Array}
2996
- */
2997
- get get_start_time() {
2998
- try {
2999
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3000
- wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
3001
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3002
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3003
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3004
- wasm.__wbindgen_free(r0, r1 * 1);
3005
- return v1;
3006
- } finally {
3007
- wasm.__wbindgen_add_to_stack_pointer(16);
3008
- }
3009
- }
3010
- /**
3011
- * @returns {Uint8Array}
3012
- */
3013
- get get_end_time() {
3014
- try {
3015
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3016
- wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
3017
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3018
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3019
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3020
- wasm.__wbindgen_free(r0, r1 * 1);
3021
- return v1;
3022
- } finally {
3023
- wasm.__wbindgen_add_to_stack_pointer(16);
3024
- }
3025
- }
3026
- /**
3027
- * @returns {number}
3028
- */
3029
- get get_op() {
3030
- const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
3031
- return ret >>> 0;
3032
- }
3033
- /**
3034
- * @returns {number}
3035
- */
3036
- get get_isl() {
3037
- const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
3038
- return ret >>> 0;
3039
- }
3040
- /**
3041
- * @returns {number}
3042
- */
3043
- get get_hizi() {
3044
- const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
3045
- return ret >>> 0;
3046
- }
3047
- /**
3048
- * @returns {number}
3049
- */
3050
- get get_cell0() {
3051
- const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
3052
- return ret >>> 0;
3053
- }
3054
- /**
3055
- * @returns {number}
3056
- */
3057
- get get_cell1() {
3058
- const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
3059
- return ret >>> 0;
3060
- }
3061
- /**
3062
- * @returns {number}
3063
- */
3064
- get get_cell2() {
3065
- const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
3066
- return ret >>> 0;
3067
- }
3068
- /**
3069
- * @returns {number}
3070
- */
3071
- get get_cell3() {
3072
- const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
3073
- return ret >>> 0;
3074
- }
3075
- /**
3076
- * @returns {number}
3077
- */
3078
- get get_cell4() {
3079
- const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
3080
- return ret >>> 0;
3081
- }
3082
- /**
3083
- * @returns {number}
3084
- */
3085
- get get_cell5() {
3086
- const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
3087
- return ret >>> 0;
3088
- }
3089
- /**
3090
- * @returns {number}
3091
- */
3092
- get get_cell6() {
3093
- const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
3094
- return ret >>> 0;
3095
- }
3096
- /**
3097
- * @returns {number}
3098
- */
3099
- get get_cell7() {
3100
- const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
3101
- return ret >>> 0;
3102
- }
3103
- /**
3104
- * @returns {number}
3105
- */
3106
- get get_cell8() {
3107
- const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
3108
- return ret >>> 0;
3109
- }
3110
- /**
3111
- * @returns {number}
3112
- */
3113
- get get_rtime() {
3114
- const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
3115
- return ret;
3116
- }
3117
- /**
3118
- * @returns {number}
3119
- */
3120
- get get_rtime_ms() {
3121
- const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
3122
- return ret >>> 0;
3123
- }
3124
- /**
3125
- * @returns {number}
3126
- */
3127
- get get_etime() {
3128
- const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
3129
- return ret;
3130
- }
3131
- /**
3132
- * @returns {number}
3133
- */
3134
- get get_video_time() {
3135
- const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
3136
- return ret;
3137
- }
3138
- /**
3139
- * @returns {number}
3140
- */
3141
- get get_bbbv_s() {
3142
- const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
3143
- return ret;
3144
- }
3145
- /**
3146
- * @returns {number}
3147
- */
3148
- get get_stnb() {
3149
- const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
3150
- return ret;
3151
- }
3152
- /**
3153
- * @returns {number}
3154
- */
3155
- get get_rqp() {
3156
- const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
3157
- return ret;
3158
- }
3159
- /**
3160
- * @returns {number}
3161
- */
3162
- get get_left() {
3163
- const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
3164
- return ret >>> 0;
3165
- }
3166
- /**
3167
- * @returns {number}
3168
- */
3169
- get get_right() {
3170
- const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
3171
- return ret >>> 0;
3172
- }
3173
- /**
3174
- * @returns {number}
3175
- */
3176
- get get_double() {
3177
- const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
3178
- return ret >>> 0;
3179
- }
3180
- /**
3181
- * @returns {number}
3182
- */
3183
- get get_cl() {
3184
- const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
3185
- return ret >>> 0;
3186
- }
3187
- /**
3188
- * @returns {number}
3189
- */
3190
- get get_flag() {
3191
- const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
3192
- return ret >>> 0;
3193
- }
3194
- /**
3195
- * @returns {number}
3196
- */
3197
- get get_bbbv_solved() {
3198
- const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
3199
- return ret >>> 0;
3200
- }
3201
- /**
3202
- * @returns {number}
3203
- */
3204
- get get_ce() {
3205
- const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
3206
- return ret >>> 0;
3207
- }
3208
- /**
3209
- * @returns {number}
3210
- */
3211
- get get_left_s() {
3212
- const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
3213
- return ret;
3214
- }
3215
- /**
3216
- * @returns {number}
3217
- */
3218
- get get_right_s() {
3219
- const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
3220
- return ret;
3221
- }
3222
- /**
3223
- * @returns {number}
3224
- */
3225
- get get_double_s() {
3226
- const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
3227
- return ret;
3228
- }
3229
- /**
3230
- * @returns {number}
3231
- */
3232
- get get_cl_s() {
3233
- const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
3234
- return ret;
3235
- }
3236
- /**
3237
- * @returns {number}
3238
- */
3239
- get get_flag_s() {
3240
- const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
3241
- return ret;
3242
- }
3243
- /**
3244
- * @returns {number}
3245
- */
3246
- get get_path() {
3247
- const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
3248
- return ret;
3249
- }
3250
- /**
3251
- * @returns {number}
3252
- */
3253
- get get_ce_s() {
3254
- const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
3255
- return ret;
3256
- }
3257
- /**
3258
- * @returns {number}
3259
- */
3260
- get get_ioe() {
3261
- const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
3262
- return ret;
3263
- }
3264
- /**
3265
- * @returns {number}
3266
- */
3267
- get get_thrp() {
3268
- const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
3269
- return ret;
3270
- }
3271
- /**
3272
- * @returns {number}
3273
- */
3274
- get get_corr() {
3275
- const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
3276
- return ret;
3277
- }
3278
- /**
3279
- * @returns {number}
3280
- */
3281
- get get_events_len() {
3282
- const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
3283
- return ret >>> 0;
3284
- }
3285
- /**
3286
- * @param {number} index
3287
- * @returns {number}
3288
- */
3289
- events_time(index) {
3290
- const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
3291
- return ret;
3292
- }
3293
- /**
3294
- * @param {number} index
3295
- * @returns {string}
3296
- */
3297
- events_mouse(index) {
3298
- let deferred1_0;
3299
- let deferred1_1;
3300
- try {
3301
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3302
- wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
3303
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3304
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3305
- deferred1_0 = r0;
3306
- deferred1_1 = r1;
3307
- return getStringFromWasm0(r0, r1);
3308
- } finally {
3309
- wasm.__wbindgen_add_to_stack_pointer(16);
3310
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3311
- }
3312
- }
3313
- /**
3314
- * @param {number} index
3315
- * @returns {number}
3316
- */
3317
- events_x(index) {
3318
- const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
3319
- return ret;
3320
- }
3321
- /**
3322
- * @param {number} index
3323
- * @returns {number}
3324
- */
3325
- events_y(index) {
3326
- const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
3327
- return ret;
3328
- }
3329
- /**
3330
- * @param {number} index
3331
- * @returns {number}
3332
- */
3333
- events_useful_level(index) {
3334
- const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
3335
- return ret;
3336
- }
3337
- /**
3338
- * @param {number} index
3339
- * @returns {number}
3340
- */
3341
- events_mouse_state(index) {
3342
- const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
3343
- return ret >>> 0;
3344
- }
3345
- /**
3346
- * @returns {number}
3347
- */
3348
- get get_current_event_id() {
3349
- const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
3350
- return ret >>> 0;
3351
- }
3352
- /**
3353
- * @param {number} id
3354
- */
3355
- set current_event_id(id) {
3356
- wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
3357
- }
3358
- /**
3359
- * @returns {string}
3360
- */
3361
- get get_game_board() {
3362
- let deferred1_0;
3363
- let deferred1_1;
3364
- try {
3365
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3366
- wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
3367
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3368
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3369
- deferred1_0 = r0;
3370
- deferred1_1 = r1;
3371
- return getStringFromWasm0(r0, r1);
3372
- } finally {
3373
- wasm.__wbindgen_add_to_stack_pointer(16);
3374
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3375
- }
3376
- }
3377
- /**
3378
- * @returns {string}
3379
- */
3380
- get get_game_board_poss() {
3381
- let deferred1_0;
3382
- let deferred1_1;
3383
- try {
3384
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3385
- wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
3386
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3387
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3388
- deferred1_0 = r0;
3389
- deferred1_1 = r1;
3390
- return getStringFromWasm0(r0, r1);
3391
- } finally {
3392
- wasm.__wbindgen_add_to_stack_pointer(16);
3393
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3394
- }
3395
- }
3396
- /**
3397
- * @returns {number}
3398
- */
3399
- get get_mouse_state() {
3400
- const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
3401
- return ret >>> 0;
3402
- }
3403
- /**
3404
- * 局面状态
3405
- * @returns {number}
3406
- */
3407
- get get_game_board_state() {
3408
- const ret = wasm.rmvvideo_get_game_board_state(this.__wbg_ptr);
3409
- return ret >>> 0;
3410
- }
3411
- /**
3412
- * 返回当前光标的位置,播放录像用
3413
- * @returns {CursorPos}
3414
- */
3415
- get get_x_y() {
3416
- const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
3417
- return CursorPos.__wrap(ret);
3418
- }
3419
- /**
3420
- * @returns {Uint8Array}
3421
- */
3422
- get get_checksum() {
3423
- try {
3424
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3425
- wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
3426
- var r0 = getInt32Memory0()[retptr / 4 + 0];
3427
- var r1 = getInt32Memory0()[retptr / 4 + 1];
3428
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
3429
- wasm.__wbindgen_free(r0, r1 * 1);
3430
- return v1;
3431
- } finally {
3432
- wasm.__wbindgen_add_to_stack_pointer(16);
3433
- }
3434
- }
3435
- /**
3436
- * @param {number} time
3437
- */
3438
- set current_time(time) {
3439
- wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
3440
- }
3441
- /**
3442
- * @returns {number}
3443
- */
3444
- is_valid() {
3445
- const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
3446
- return ret;
3447
- }
3448
- }
3449
- module.exports.RmvVideo = RmvVideo;
3450
-
3451
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
3452
- const ret = new Error();
3453
- return addHeapObject(ret);
3454
- };
3455
-
3456
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3457
- const ret = getObject(arg1).stack;
3458
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3459
- const len1 = WASM_VECTOR_LEN;
3460
- getInt32Memory0()[arg0 / 4 + 1] = len1;
3461
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3462
- };
3463
-
3464
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3465
- let deferred0_0;
3466
- let deferred0_1;
3467
- try {
3468
- deferred0_0 = arg0;
3469
- deferred0_1 = arg1;
3470
- console.error(getStringFromWasm0(arg0, arg1));
3471
- } finally {
3472
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3473
- }
3474
- };
3475
-
3476
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
3477
- takeObject(arg0);
3478
- };
3479
-
3480
- module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
3481
- const ret = getObject(arg0).crypto;
3482
- return addHeapObject(ret);
3483
- };
3484
-
3485
- module.exports.__wbindgen_is_object = function(arg0) {
3486
- const val = getObject(arg0);
3487
- const ret = typeof(val) === 'object' && val !== null;
3488
- return ret;
3489
- };
3490
-
3491
- module.exports.__wbg_process_298734cf255a885d = function(arg0) {
3492
- const ret = getObject(arg0).process;
3493
- return addHeapObject(ret);
3494
- };
3495
-
3496
- module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
3497
- const ret = getObject(arg0).versions;
3498
- return addHeapObject(ret);
3499
- };
3500
-
3501
- module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
3502
- const ret = getObject(arg0).node;
3503
- return addHeapObject(ret);
3504
- };
3505
-
3506
- module.exports.__wbindgen_is_string = function(arg0) {
3507
- const ret = typeof(getObject(arg0)) === 'string';
3508
- return ret;
3509
- };
3510
-
3511
- module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
3512
- const ret = module.require;
3513
- return addHeapObject(ret);
3514
- }, arguments) };
3515
-
3516
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
3517
- const ret = getStringFromWasm0(arg0, arg1);
3518
- return addHeapObject(ret);
3519
- };
3520
-
3521
- module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
3522
- const ret = getObject(arg0).msCrypto;
3523
- return addHeapObject(ret);
3524
- };
3525
-
3526
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
3527
- getObject(arg0).randomFillSync(takeObject(arg1));
3528
- }, arguments) };
3529
-
3530
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
3531
- getObject(arg0).getRandomValues(getObject(arg1));
3532
- }, arguments) };
3533
-
3534
- module.exports.__wbindgen_is_function = function(arg0) {
3535
- const ret = typeof(getObject(arg0)) === 'function';
3536
- return ret;
3537
- };
3538
-
3539
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
3540
- const ret = new Function(getStringFromWasm0(arg0, arg1));
3541
- return addHeapObject(ret);
3542
- };
3543
-
3544
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
3545
- const ret = getObject(arg0).call(getObject(arg1));
3546
- return addHeapObject(ret);
3547
- }, arguments) };
3548
-
3549
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
3550
- const ret = self.self;
3551
- return addHeapObject(ret);
3552
- }, arguments) };
3553
-
3554
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
3555
- const ret = window.window;
3556
- return addHeapObject(ret);
3557
- }, arguments) };
3558
-
3559
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
3560
- const ret = globalThis.globalThis;
3561
- return addHeapObject(ret);
3562
- }, arguments) };
3563
-
3564
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
3565
- const ret = global.global;
3566
- return addHeapObject(ret);
3567
- }, arguments) };
3568
-
3569
- module.exports.__wbindgen_is_undefined = function(arg0) {
3570
- const ret = getObject(arg0) === undefined;
3571
- return ret;
3572
- };
3573
-
3574
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
3575
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
3576
- return addHeapObject(ret);
3577
- }, arguments) };
3578
-
3579
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
3580
- const ret = getObject(arg0).buffer;
3581
- return addHeapObject(ret);
3582
- };
3583
-
3584
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
3585
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3586
- return addHeapObject(ret);
3587
- };
3588
-
3589
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
3590
- const ret = new Uint8Array(getObject(arg0));
3591
- return addHeapObject(ret);
3592
- };
3593
-
3594
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
3595
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3596
- };
3597
-
3598
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
3599
- const ret = new Uint8Array(arg0 >>> 0);
3600
- return addHeapObject(ret);
3601
- };
3602
-
3603
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
3604
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
3605
- return addHeapObject(ret);
3606
- };
3607
-
3608
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
3609
- const ret = getObject(arg0);
3610
- return addHeapObject(ret);
3611
- };
3612
-
3613
- module.exports.__wbindgen_throw = function(arg0, arg1) {
3614
- throw new Error(getStringFromWasm0(arg0, arg1));
3615
- };
3616
-
3617
- module.exports.__wbindgen_memory = function() {
3618
- const ret = wasm.memory;
3619
- return addHeapObject(ret);
3620
- };
3621
-
3622
- const path = require('path').join(__dirname, 'ms_toollib_bg.wasm');
3623
- const bytes = require('fs').readFileSync(path);
3624
-
3625
- const wasmModule = new WebAssembly.Module(bytes);
3626
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
3627
- wasm = wasmInstance.exports;
3628
- module.exports.__wasm = wasm;
3629
-
1
+ import * as wasm from "./ms_toollib_bg.wasm";
2
+ import { __wbg_set_wasm } from "./ms_toollib_bg.js";
3
+ __wbg_set_wasm(wasm);
4
+ export * from "./ms_toollib_bg.js";