-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbindings.dart
More file actions
12517 lines (6112 loc) · 197 KB
/
bindings.dart
File metadata and controls
12517 lines (6112 loc) · 197 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ignore_for_file: type=lint, unused_element, unused_field
// dart format off
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
// ignore_for_file: unused_import
import 'dart:ffi' as ffi;
/// bindings to libedax
class LibEdaxBindings{
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) _lookup;
/// The symbols are looked up in [dynamicLibrary].
LibEdaxBindings(ffi.DynamicLibrary dynamicLibrary): _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
LibEdaxBindings.fromLookup(ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup): _lookup = lookup;
/// conversion from an 8-bit line to the A1-A8 line
late final ffi.Pointer<ffi.UnsignedLongLong> _A1_A8 = _lookup<ffi.UnsignedLongLong>('A1_A8');
ffi.Pointer<ffi.UnsignedLongLong> get A1_A8 => _A1_A8;
late final ffi.Pointer<Link> _BAD_LINK = _lookup<Link>('BAD_LINK');
Link get BAD_LINK => _BAD_LINK.ref;
late final ffi.Pointer<ffi.Int> _BOOK_INFO_RESOLUTION = _lookup<ffi.Int>('BOOK_INFO_RESOLUTION');
int get BOOK_INFO_RESOLUTION => _BOOK_INFO_RESOLUTION.value;
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_2 = _lookup<ffi.Char>('COUNT_FLIP_2');
ffi.Pointer<ffi.Char> get COUNT_FLIP_2 => _COUNT_FLIP_2;
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_3 = _lookup<ffi.Char>('COUNT_FLIP_3');
ffi.Pointer<ffi.Char> get COUNT_FLIP_3 => _COUNT_FLIP_3;
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_4 = _lookup<ffi.Char>('COUNT_FLIP_4');
ffi.Pointer<ffi.Char> get COUNT_FLIP_4 => _COUNT_FLIP_4;
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_5 = _lookup<ffi.Char>('COUNT_FLIP_5');
ffi.Pointer<ffi.Char> get COUNT_FLIP_5 => _COUNT_FLIP_5;
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_L = _lookup<ffi.Char>('COUNT_FLIP_L');
ffi.Pointer<ffi.Char> get COUNT_FLIP_L => _COUNT_FLIP_L;
/// precomputed count flip array
late final ffi.Pointer<ffi.Char> _COUNT_FLIP_R = _lookup<ffi.Char>('COUNT_FLIP_R');
ffi.Pointer<ffi.Char> get COUNT_FLIP_R => _COUNT_FLIP_R;
/// Array of functions to count flipped discs of the last move
late final ffi.Pointer<ffi.Pointer<ffi.NativeFunction<ffi.Int Function(ffi.UnsignedLongLong )>>> _COUNT_LAST_FLIP = _lookup<ffi.Pointer<ffi.NativeFunction<ffi.Int Function(ffi.UnsignedLongLong )>>>('COUNT_LAST_FLIP');
ffi.Pointer<ffi.Pointer<ffi.NativeFunction<ffi.Int Function(ffi.UnsignedLongLong )>>> get COUNT_LAST_FLIP => _COUNT_LAST_FLIP;
/// evaluation function error coefficient parameters
late final ffi.Pointer<ffi.Double> _EVAL_A = _lookup<ffi.Double>('EVAL_A');
double get EVAL_A => _EVAL_A.value;
set EVAL_A(double value) =>_EVAL_A.value = value;
late final ffi.Pointer<ffi.Double> _EVAL_B = _lookup<ffi.Double>('EVAL_B');
double get EVAL_B => _EVAL_B.value;
set EVAL_B(double value) =>_EVAL_B.value = value;
late final ffi.Pointer<ffi.Double> _EVAL_C = _lookup<ffi.Double>('EVAL_C');
double get EVAL_C => _EVAL_C.value;
set EVAL_C(double value) =>_EVAL_C.value = value;
/// feature symetry packing
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_C10 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_C10');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_C10 => _EVAL_C10;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_C9 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_C9');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_C9 => _EVAL_C9;
/// array to convert features into coordinates
late final ffi.Pointer<FeatureToCoordinate> _EVAL_F2X = _lookup<FeatureToCoordinate>('EVAL_F2X');
ffi.Pointer<FeatureToCoordinate> get EVAL_F2X => _EVAL_F2X;
/// eval weight load status
late final ffi.Pointer<ffi.Int> _EVAL_LOADED = _lookup<ffi.Int>('EVAL_LOADED');
int get EVAL_LOADED => _EVAL_LOADED.value;
set EVAL_LOADED(int value) =>_EVAL_LOADED.value = value;
late final ffi.Pointer<ffi.Int> _EVAL_MAX_VALUE = _lookup<ffi.Int>('EVAL_MAX_VALUE');
ffi.Pointer<ffi.Int> get EVAL_MAX_VALUE => _EVAL_MAX_VALUE;
/// number of features
late final ffi.Pointer<ffi.Int> _EVAL_N_FEATURE = _lookup<ffi.Int>('EVAL_N_FEATURE');
int get EVAL_N_FEATURE => _EVAL_N_FEATURE.value;
/// number of plies
late final ffi.Pointer<ffi.Int> _EVAL_N_PLY = _lookup<ffi.Int>('EVAL_N_PLY');
int get EVAL_N_PLY => _EVAL_N_PLY.value;
/// number of (unpacked) weights
late final ffi.Pointer<ffi.Int> _EVAL_N_WEIGHT = _lookup<ffi.Int>('EVAL_N_WEIGHT');
int get EVAL_N_WEIGHT => _EVAL_N_WEIGHT.value;
/// feature offset
late final ffi.Pointer<ffi.Int> _EVAL_OFFSET = _lookup<ffi.Int>('EVAL_OFFSET');
ffi.Pointer<ffi.Int> get EVAL_OFFSET => _EVAL_OFFSET;
/// packed feature size
late final ffi.Pointer<ffi.Int> _EVAL_PACKED_SIZE = _lookup<ffi.Int>('EVAL_PACKED_SIZE');
ffi.Pointer<ffi.Int> get EVAL_PACKED_SIZE => _EVAL_PACKED_SIZE;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S10 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S10');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S10 => _EVAL_S10;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S4 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S4');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S4 => _EVAL_S4;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S5 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S5');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S5 => _EVAL_S5;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S6 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S6');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S6 => _EVAL_S6;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S7 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S7');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S7 => _EVAL_S7;
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _EVAL_S8 = _lookup<ffi.Pointer<ffi.Int>>('EVAL_S8');
ffi.Pointer<ffi.Pointer<ffi.Int>> get EVAL_S8 => _EVAL_S8;
/// feature size
late final ffi.Pointer<ffi.Int> _EVAL_SIZE = _lookup<ffi.Int>('EVAL_SIZE');
ffi.Pointer<ffi.Int> get EVAL_SIZE => _EVAL_SIZE;
/// eval weights
late final ffi.Pointer<ffi.Pointer<ffi.Pointer<ffi.Pointer<ffi.Short>>>> _EVAL_WEIGHT = _lookup<ffi.Pointer<ffi.Pointer<ffi.Pointer<ffi.Short>>>>('EVAL_WEIGHT');
ffi.Pointer<ffi.Pointer<ffi.Pointer<ffi.Short>>> get EVAL_WEIGHT => _EVAL_WEIGHT.value;
set EVAL_WEIGHT(ffi.Pointer<ffi.Pointer<ffi.Pointer<ffi.Short>>> value) =>_EVAL_WEIGHT.value = value;
/// array to convert coordinates into feature
late final ffi.Pointer<CoordinateToFeature> _EVAL_X2F = _lookup<CoordinateToFeature>('EVAL_X2F');
ffi.Pointer<CoordinateToFeature> get EVAL_X2F => _EVAL_X2F;
late final ffi.Pointer<ffi.Double> _EVAL_a = _lookup<ffi.Double>('EVAL_a');
double get EVAL_a => _EVAL_a.value;
set EVAL_a(double value) =>_EVAL_a.value = value;
late final ffi.Pointer<ffi.Double> _EVAL_b = _lookup<ffi.Double>('EVAL_b');
double get EVAL_b => _EVAL_b.value;
set EVAL_b(double value) =>_EVAL_b.value = value;
late final ffi.Pointer<ffi.Double> _EVAL_c = _lookup<ffi.Double>('EVAL_c');
double get EVAL_c => _EVAL_c.value;
set EVAL_c(double value) =>_EVAL_c.value = value;
/// flip array (indexed with outflank, returns inner 6 bits)
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_2_H = _lookup<ffi.UnsignedLongLong>('FLIPPED_2_H');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_2_H => _FLIPPED_2_H;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_2_V = _lookup<ffi.UnsignedLongLong>('FLIPPED_2_V');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_2_V => _FLIPPED_2_V;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_3_H = _lookup<ffi.UnsignedLongLong>('FLIPPED_3_H');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_3_H => _FLIPPED_3_H;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_3_V = _lookup<ffi.UnsignedLongLong>('FLIPPED_3_V');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_3_V => _FLIPPED_3_V;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_4_H = _lookup<ffi.UnsignedLongLong>('FLIPPED_4_H');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_4_H => _FLIPPED_4_H;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_4_V = _lookup<ffi.UnsignedLongLong>('FLIPPED_4_V');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_4_V => _FLIPPED_4_V;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_5_H = _lookup<ffi.UnsignedLongLong>('FLIPPED_5_H');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_5_H => _FLIPPED_5_H;
late final ffi.Pointer<ffi.UnsignedLongLong> _FLIPPED_5_V = _lookup<ffi.UnsignedLongLong>('FLIPPED_5_V');
ffi.Pointer<ffi.UnsignedLongLong> get FLIPPED_5_V => _FLIPPED_5_V;
/// Hash entry initial value
late final ffi.Pointer<GameHash> _GAME_HASH_INIT = _lookup<GameHash>('GAME_HASH_INIT');
GameHash get GAME_HASH_INIT => _GAME_HASH_INIT.ref;
/// initial statistics
late final ffi.Pointer<GameStatistics> _GAME_STATISTICS_INIT = _lookup<GameStatistics>('GAME_STATISTICS_INIT');
GameStatistics get GAME_STATISTICS_INIT => _GAME_STATISTICS_INIT.ref;
late final ffi.Pointer<GGSClock> _GGS_CLOCK_INI = _lookup<GGSClock>('GGS_CLOCK_INI');
GGSClock get GGS_CLOCK_INI => _GGS_CLOCK_INI.ref;
late final ffi.Pointer<GGSMatchType> _GGS_MATCH_TYPE_INI = _lookup<GGSMatchType>('GGS_MATCH_TYPE_INI');
GGSMatchType get GGS_MATCH_TYPE_INI => _GGS_MATCH_TYPE_INI.ref;
/// conversion from an 8-bit line to the H1-H8 line
late final ffi.Pointer<ffi.UnsignedLongLong> _H1_H8 = _lookup<ffi.UnsignedLongLong>('H1_H8');
ffi.Pointer<ffi.UnsignedLongLong> get H1_H8 => _H1_H8;
/// HashData init value
late final ffi.Pointer<HashData> _HASH_DATA_INIT = _lookup<HashData>('HASH_DATA_INIT');
HashData get HASH_DATA_INIT => _HASH_DATA_INIT.ref;
late final ffi.Pointer<ffi.Pointer<Level>> _LEVEL = _lookup<ffi.Pointer<Level>>('LEVEL');
ffi.Pointer<ffi.Pointer<Level>> get LEVEL => _LEVEL;
late final ffi.Pointer<Move> _MOVE_INIT = _lookup<Move>('MOVE_INIT');
Move get MOVE_INIT => _MOVE_INIT.ref;
late final ffi.Pointer<Move> _MOVE_PASS = _lookup<Move>('MOVE_PASS');
Move get MOVE_PASS => _MOVE_PASS.ref;
/// Conversion array: neighbour bits
late final ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> _NEIGHBOUR = _lookup<ffi.Pointer<ffi.UnsignedLongLong>>('NEIGHBOUR');
ffi.Pointer<ffi.UnsignedLongLong> get NEIGHBOUR => _NEIGHBOUR.value;
set NEIGHBOUR(ffi.Pointer<ffi.UnsignedLongLong> value) =>_NEIGHBOUR.value = value;
/// The list of french opening names
late final ffi.Pointer<PositionName> _NOM_POSITION = _lookup<PositionName>('NOM_POSITION');
ffi.Pointer<PositionName> get NOM_POSITION => _NOM_POSITION;
/// level with no selectivity
late final ffi.Pointer<ffi.Int> _NO_SELECTIVITY = _lookup<ffi.Int>('NO_SELECTIVITY');
int get NO_SELECTIVITY => _NO_SELECTIVITY.value;
/// threshold values to try stability cutoff during NWS search
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _NWS_STABILITY_THRESHOLD = _lookup<ffi.Pointer<ffi.Int>>('NWS_STABILITY_THRESHOLD');
ffi.Pointer<ffi.Int> get NWS_STABILITY_THRESHOLD => _NWS_STABILITY_THRESHOLD.value;
set NWS_STABILITY_THRESHOLD(ffi.Pointer<ffi.Int> value) =>_NWS_STABILITY_THRESHOLD.value = value;
/// The list of french & english opening names
late final ffi.Pointer<OpeningName> _OPENING_NAME = _lookup<OpeningName>('OPENING_NAME');
ffi.Pointer<OpeningName> get OPENING_NAME => _OPENING_NAME;
late final ffi.Pointer<ffi.UnsignedChar> _OUTFLANK_2 = _lookup<ffi.UnsignedChar>('OUTFLANK_2');
ffi.Pointer<ffi.UnsignedChar> get OUTFLANK_2 => _OUTFLANK_2;
late final ffi.Pointer<ffi.UnsignedChar> _OUTFLANK_3 = _lookup<ffi.UnsignedChar>('OUTFLANK_3');
ffi.Pointer<ffi.UnsignedChar> get OUTFLANK_3 => _OUTFLANK_3;
late final ffi.Pointer<ffi.UnsignedChar> _OUTFLANK_4 = _lookup<ffi.UnsignedChar>('OUTFLANK_4');
ffi.Pointer<ffi.UnsignedChar> get OUTFLANK_4 => _OUTFLANK_4;
late final ffi.Pointer<ffi.UnsignedChar> _OUTFLANK_5 = _lookup<ffi.UnsignedChar>('OUTFLANK_5');
ffi.Pointer<ffi.UnsignedChar> get OUTFLANK_5 => _OUTFLANK_5;
late final ffi.Pointer<ffi.UnsignedChar> _OUTFLANK_7 = _lookup<ffi.UnsignedChar>('OUTFLANK_7');
ffi.Pointer<ffi.UnsignedChar> get OUTFLANK_7 => _OUTFLANK_7;
/// The list of french opening names
late final ffi.Pointer<PositionName> _POSITION_NAME = _lookup<PositionName>('POSITION_NAME');
ffi.Pointer<PositionName> get POSITION_NAME => _POSITION_NAME;
/// threshold values to try stability cutoff during PVS search
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _PVS_STABILITY_THRESHOLD = _lookup<ffi.Pointer<ffi.Int>>('PVS_STABILITY_THRESHOLD');
ffi.Pointer<ffi.Int> get PVS_STABILITY_THRESHOLD => _PVS_STABILITY_THRESHOLD.value;
set PVS_STABILITY_THRESHOLD(ffi.Pointer<ffi.Int> value) =>_PVS_STABILITY_THRESHOLD.value = value;
/// a quadrant id for each square
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _QUADRANT_ID = _lookup<ffi.Pointer<ffi.Int>>('QUADRANT_ID');
ffi.Pointer<ffi.Int> get QUADRANT_ID => _QUADRANT_ID.value;
set QUADRANT_ID(ffi.Pointer<ffi.Int> value) =>_QUADRANT_ID.value = value;
/// square type
late final ffi.Pointer<ffi.Pointer<ffi.Int>> _SQUARE_TYPE = _lookup<ffi.Pointer<ffi.Int>>('SQUARE_TYPE');
ffi.Pointer<ffi.Int> get SQUARE_TYPE => _SQUARE_TYPE.value;
set SQUARE_TYPE(ffi.Pointer<ffi.Int> value) =>_SQUARE_TYPE.value = value;
late final ffi.Pointer<ffi.Int> _SQUARE_VALUE = _lookup<ffi.Int>('SQUARE_VALUE');
ffi.Pointer<ffi.Int> get SQUARE_VALUE => _SQUARE_VALUE;
/// coordinate to bit table converter
late final ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> _X_TO_BIT = _lookup<ffi.Pointer<ffi.UnsignedLongLong>>('X_TO_BIT');
ffi.Pointer<ffi.UnsignedLongLong> get X_TO_BIT => _X_TO_BIT.value;
set X_TO_BIT(ffi.Pointer<ffi.UnsignedLongLong> value) =>_X_TO_BIT.value = value;
late final ffi.Pointer<ffi.Pointer<_RuneLocale>> __CurrentRuneLocale = _lookup<ffi.Pointer<_RuneLocale>>('_CurrentRuneLocale');
ffi.Pointer<_RuneLocale> get _CurrentRuneLocale => __CurrentRuneLocale.value;
set _CurrentRuneLocale(ffi.Pointer<_RuneLocale> value) =>__CurrentRuneLocale.value = value;
late final ffi.Pointer<_RuneLocale> __DefaultRuneLocale = _lookup<_RuneLocale>('_DefaultRuneLocale');
_RuneLocale get _DefaultRuneLocale => __DefaultRuneLocale.ref;
late final ffi.Pointer<ffi.Int> ___mb_cur_max = _lookup<ffi.Int>('__mb_cur_max');
int get __mb_cur_max => ___mb_cur_max.value;
set __mb_cur_max(int value) =>___mb_cur_max.value = value;
late final ffi.Pointer<ffi.Pointer<FILE>> ___stderrp = _lookup<ffi.Pointer<FILE>>('__stderrp');
ffi.Pointer<FILE> get __stderrp => ___stderrp.value;
set __stderrp(ffi.Pointer<FILE> value) =>___stderrp.value = value;
late final ffi.Pointer<ffi.Pointer<FILE>> ___stdinp = _lookup<ffi.Pointer<FILE>>('__stdinp');
ffi.Pointer<FILE> get __stdinp => ___stdinp.value;
set __stdinp(ffi.Pointer<FILE> value) =>___stdinp.value = value;
late final ffi.Pointer<ffi.Pointer<FILE>> ___stdoutp = _lookup<ffi.Pointer<FILE>>('__stdoutp');
ffi.Pointer<FILE> get __stdoutp => ___stdoutp.value;
set __stdoutp(ffi.Pointer<FILE> value) =>___stdoutp.value = value;
late final ffi.Pointer<ffi.Pointer<ffi.Char>> _admin_list = _lookup<ffi.Pointer<ffi.Char>>('admin_list');
ffi.Pointer<ffi.Pointer<ffi.Char>> get admin_list => _admin_list;
/// @brief Count the number of bits set to one in an unsigned long long.
///
/// This is the classical popcount function.
/// Since 2007, it is part of the instruction set of some modern CPU,
/// (>= barcelona for AMD or >= nelhacem for Intel). Alternatively,
/// a fast SWAR algorithm, adding bits in parallel is provided here.
/// This function is massively used to count discs on the board,
/// the mobility, or the stability.
///
/// @param b 64-bit integer to count bits of.
/// @return the number of bits set.
int bit_count(int arg0,
) {
return _bit_count(arg0,
);
}
late final _bit_countPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.UnsignedLongLong )>>('bit_count');
late final _bit_count = _bit_countPtr.asFunction<int Function(int )>();
late final ffi.Pointer<ffi.Bool> _book_verbose = _lookup<ffi.Bool>('book_verbose');
bool get book_verbose => _book_verbose.value;
set book_verbose(bool value) =>_book_verbose.value = value;
late final ffi.Pointer<ffi.Int> _daylight = _lookup<ffi.Int>('daylight');
int get daylight => _daylight.value;
set daylight(int value) =>_daylight.value = value;
int edax_board_get_square_color(ffi.Pointer<Board> arg0,
int arg1,
) {
return _edax_board_get_square_color(arg0,
arg1,
);
}
late final _edax_board_get_square_colorPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<Board> , ffi.Int )>>('edax_board_get_square_color');
late final _edax_board_get_square_color = _edax_board_get_square_colorPtr.asFunction<int Function(ffi.Pointer<Board> , int )>();
int edax_board_is_pass(ffi.Pointer<Board> arg0,
) {
return _edax_board_is_pass(arg0,
);
}
late final _edax_board_is_passPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<Board> )>>('edax_board_is_pass');
late final _edax_board_is_pass = _edax_board_is_passPtr.asFunction<int Function(ffi.Pointer<Board> )>();
void edax_book_count_bestpath(ffi.Pointer<Board> arg0,
ffi.Pointer<Position> arg1,
) {
return _edax_book_count_bestpath(arg0,
arg1,
);
}
late final _edax_book_count_bestpathPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Board> , ffi.Pointer<Position> )>>('edax_book_count_bestpath');
late final _edax_book_count_bestpath = _edax_book_count_bestpathPtr.asFunction<void Function(ffi.Pointer<Board> , ffi.Pointer<Position> )>();
void edax_book_count_board_bestpath(ffi.Pointer<Board> arg0,
ffi.Pointer<Position> arg1,
int arg2,
int arg3,
int arg4,
) {
return _edax_book_count_board_bestpath(arg0,
arg1,
arg2,
arg3,
arg4,
);
}
late final _edax_book_count_board_bestpathPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Board> , ffi.Pointer<Position> , ffi.Int , ffi.Int , ffi.Int )>>('edax_book_count_board_bestpath');
late final _edax_book_count_board_bestpath = _edax_book_count_board_bestpathPtr.asFunction<void Function(ffi.Pointer<Board> , ffi.Pointer<Position> , int , int , int )>();
void edax_book_deviate(int arg0,
int arg1,
) {
return _edax_book_deviate(arg0,
arg1,
);
}
late final _edax_book_deviatePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int , ffi.Int )>>('edax_book_deviate');
late final _edax_book_deviate = _edax_book_deviatePtr.asFunction<void Function(int , int )>();
void edax_book_fix() {
return _edax_book_fix();
}
late final _edax_book_fixPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_book_fix');
late final _edax_book_fix = _edax_book_fixPtr.asFunction<void Function()>();
void edax_book_load(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_book_load(arg0,
);
}
late final _edax_book_loadPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Char> )>>('edax_book_load');
late final _edax_book_load = _edax_book_loadPtr.asFunction<void Function(ffi.Pointer<ffi.Char> )>();
void edax_book_new(int arg0,
int arg1,
) {
return _edax_book_new(arg0,
arg1,
);
}
late final _edax_book_newPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int , ffi.Int )>>('edax_book_new');
late final _edax_book_new = _edax_book_newPtr.asFunction<void Function(int , int )>();
void edax_book_off() {
return _edax_book_off();
}
late final _edax_book_offPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_book_off');
late final _edax_book_off = _edax_book_offPtr.asFunction<void Function()>();
void edax_book_on() {
return _edax_book_on();
}
late final _edax_book_onPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_book_on');
late final _edax_book_on = _edax_book_onPtr.asFunction<void Function()>();
void edax_book_randomness(int arg0,
) {
return _edax_book_randomness(arg0,
);
}
late final _edax_book_randomnessPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int )>>('edax_book_randomness');
late final _edax_book_randomness = _edax_book_randomnessPtr.asFunction<void Function(int )>();
void edax_book_save(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_book_save(arg0,
);
}
late final _edax_book_savePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Char> )>>('edax_book_save');
late final _edax_book_save = _edax_book_savePtr.asFunction<void Function(ffi.Pointer<ffi.Char> )>();
void edax_book_show(ffi.Pointer<Position> arg0,
) {
return _edax_book_show(arg0,
);
}
late final _edax_book_showPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Position> )>>('edax_book_show');
late final _edax_book_show = _edax_book_showPtr.asFunction<void Function(ffi.Pointer<Position> )>();
void edax_book_stop_count_bestpath() {
return _edax_book_stop_count_bestpath();
}
late final _edax_book_stop_count_bestpathPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_book_stop_count_bestpath');
late final _edax_book_stop_count_bestpath = _edax_book_stop_count_bestpathPtr.asFunction<void Function()>();
void edax_book_store() {
return _edax_book_store();
}
late final _edax_book_storePtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_book_store');
late final _edax_book_store = _edax_book_storePtr.asFunction<void Function()>();
void edax_book_verbose(int arg0,
) {
return _edax_book_verbose(arg0,
);
}
late final _edax_book_verbosePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int )>>('edax_book_verbose');
late final _edax_book_verbose = _edax_book_verbosePtr.asFunction<void Function(int )>();
int edax_can_move() {
return _edax_can_move();
}
late final _edax_can_movePtr = _lookup<
ffi.NativeFunction<ffi.Int Function()>>('edax_can_move');
late final _edax_can_move = _edax_can_movePtr.asFunction<int Function()>();
void edax_disable_book_verbose() {
return _edax_disable_book_verbose();
}
late final _edax_disable_book_verbosePtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_disable_book_verbose');
late final _edax_disable_book_verbose = _edax_disable_book_verbosePtr.asFunction<void Function()>();
void edax_enable_book_verbose() {
return _edax_enable_book_verbose();
}
late final _edax_enable_book_verbosePtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_enable_book_verbose');
late final _edax_enable_book_verbose = _edax_enable_book_verbosePtr.asFunction<void Function()>();
void edax_get_board(ffi.Pointer<Board> arg0,
) {
return _edax_get_board(arg0,
);
}
late final _edax_get_boardPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Board> )>>('edax_get_board');
late final _edax_get_board = _edax_get_boardPtr.asFunction<void Function(ffi.Pointer<Board> )>();
void edax_get_bookmove(ffi.Pointer<MoveList> arg0,
) {
return _edax_get_bookmove(arg0,
);
}
late final _edax_get_bookmovePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<MoveList> )>>('edax_get_bookmove');
late final _edax_get_bookmove = _edax_get_bookmovePtr.asFunction<void Function(ffi.Pointer<MoveList> )>();
int edax_get_bookmove_with_position(ffi.Pointer<MoveList> arg0,
ffi.Pointer<Position> arg1,
) {
return _edax_get_bookmove_with_position(arg0,
arg1,
);
}
late final _edax_get_bookmove_with_positionPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<MoveList> , ffi.Pointer<Position> )>>('edax_get_bookmove_with_position');
late final _edax_get_bookmove_with_position = _edax_get_bookmove_with_positionPtr.asFunction<int Function(ffi.Pointer<MoveList> , ffi.Pointer<Position> )>();
int edax_get_bookmove_with_position_by_moves(ffi.Pointer<ffi.Char> arg0,
ffi.Pointer<MoveList> arg1,
ffi.Pointer<Position> arg2,
) {
return _edax_get_bookmove_with_position_by_moves(arg0,
arg1,
arg2,
);
}
late final _edax_get_bookmove_with_position_by_movesPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Char> , ffi.Pointer<MoveList> , ffi.Pointer<Position> )>>('edax_get_bookmove_with_position_by_moves');
late final _edax_get_bookmove_with_position_by_moves = _edax_get_bookmove_with_position_by_movesPtr.asFunction<int Function(ffi.Pointer<ffi.Char> , ffi.Pointer<MoveList> , ffi.Pointer<Position> )>();
int edax_get_current_player() {
return _edax_get_current_player();
}
late final _edax_get_current_playerPtr = _lookup<
ffi.NativeFunction<ffi.Int Function()>>('edax_get_current_player');
late final _edax_get_current_player = _edax_get_current_playerPtr.asFunction<int Function()>();
int edax_get_disc(int arg0,
) {
return _edax_get_disc(arg0,
);
}
late final _edax_get_discPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Int )>>('edax_get_disc');
late final _edax_get_disc = _edax_get_discPtr.asFunction<int Function(int )>();
void edax_get_last_move(ffi.Pointer<Move> arg0,
) {
return _edax_get_last_move(arg0,
);
}
late final _edax_get_last_movePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Move> )>>('edax_get_last_move');
late final _edax_get_last_move = _edax_get_last_movePtr.asFunction<void Function(ffi.Pointer<Move> )>();
int edax_get_mobility_count(int arg0,
) {
return _edax_get_mobility_count(arg0,
);
}
late final _edax_get_mobility_countPtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Int )>>('edax_get_mobility_count');
late final _edax_get_mobility_count = _edax_get_mobility_countPtr.asFunction<int Function(int )>();
ffi.Pointer<ffi.Char> edax_get_moves(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_get_moves(arg0,
);
}
late final _edax_get_movesPtr = _lookup<
ffi.NativeFunction<ffi.Pointer<ffi.Char> Function(ffi.Pointer<ffi.Char> )>>('edax_get_moves');
late final _edax_get_moves = _edax_get_movesPtr.asFunction<ffi.Pointer<ffi.Char> Function(ffi.Pointer<ffi.Char> )>();
void edax_go() {
return _edax_go();
}
late final _edax_goPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_go');
late final _edax_go = _edax_goPtr.asFunction<void Function()>();
void edax_hint(int arg0,
ffi.Pointer<HintList> arg1,
) {
return _edax_hint(arg0,
arg1,
);
}
late final _edax_hintPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int , ffi.Pointer<HintList> )>>('edax_hint');
late final _edax_hint = _edax_hintPtr.asFunction<void Function(int , ffi.Pointer<HintList> )>();
void edax_hint_next(ffi.Pointer<Hint> arg0,
) {
return _edax_hint_next(arg0,
);
}
late final _edax_hint_nextPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Hint> )>>('edax_hint_next');
late final _edax_hint_next = _edax_hint_nextPtr.asFunction<void Function(ffi.Pointer<Hint> )>();
void edax_hint_next_no_multipv_depth(ffi.Pointer<Hint> arg0,
) {
return _edax_hint_next_no_multipv_depth(arg0,
);
}
late final _edax_hint_next_no_multipv_depthPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<Hint> )>>('edax_hint_next_no_multipv_depth');
late final _edax_hint_next_no_multipv_depth = _edax_hint_next_no_multipv_depthPtr.asFunction<void Function(ffi.Pointer<Hint> )>();
void edax_hint_prepare(ffi.Pointer<MoveList> arg0,
) {
return _edax_hint_prepare(arg0,
);
}
late final _edax_hint_preparePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<MoveList> )>>('edax_hint_prepare');
late final _edax_hint_prepare = _edax_hint_preparePtr.asFunction<void Function(ffi.Pointer<MoveList> )>();
void edax_init() {
return _edax_init();
}
late final _edax_initPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_init');
late final _edax_init = _edax_initPtr.asFunction<void Function()>();
int edax_is_game_over() {
return _edax_is_game_over();
}
late final _edax_is_game_overPtr = _lookup<
ffi.NativeFunction<ffi.Int Function()>>('edax_is_game_over');
late final _edax_is_game_over = _edax_is_game_overPtr.asFunction<int Function()>();
late final ffi.Pointer<Log> _edax_log = _lookup<Log>('edax_log');
ffi.Pointer<Log> get edax_log => _edax_log;
void edax_mode(int arg0,
) {
return _edax_mode(arg0,
);
}
late final _edax_modePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int )>>('edax_mode');
late final _edax_mode = _edax_modePtr.asFunction<void Function(int )>();
int edax_move(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_move(arg0,
);
}
late final _edax_movePtr = _lookup<
ffi.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Char> )>>('edax_move');
late final _edax_move = _edax_movePtr.asFunction<int Function(ffi.Pointer<ffi.Char> )>();
void edax_new() {
return _edax_new();
}
late final _edax_newPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_new');
late final _edax_new = _edax_newPtr.asFunction<void Function()>();
ffi.Pointer<ffi.Char> edax_opening() {
return _edax_opening();
}
late final _edax_openingPtr = _lookup<
ffi.NativeFunction<ffi.Pointer<ffi.Char> Function()>>('edax_opening');
late final _edax_opening = _edax_openingPtr.asFunction<ffi.Pointer<ffi.Char> Function()>();
void edax_options_dump() {
return _edax_options_dump();
}
late final _edax_options_dumpPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_options_dump');
late final _edax_options_dump = _edax_options_dumpPtr.asFunction<void Function()>();
void edax_play(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_play(arg0,
);
}
late final _edax_playPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Char> )>>('edax_play');
late final _edax_play = _edax_playPtr.asFunction<void Function(ffi.Pointer<ffi.Char> )>();
void edax_play_print() {
return _edax_play_print();
}
late final _edax_play_printPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_play_print');
late final _edax_play_print = _edax_play_printPtr.asFunction<void Function()>();
void edax_redo() {
return _edax_redo();
}
late final _edax_redoPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_redo');
late final _edax_redo = _edax_redoPtr.asFunction<void Function()>();
void edax_rotate(int arg0,
) {
return _edax_rotate(arg0,
);
}
late final _edax_rotatePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int )>>('edax_rotate');
late final _edax_rotate = _edax_rotatePtr.asFunction<void Function(int )>();
void edax_set_option(ffi.Pointer<ffi.Char> arg0,
ffi.Pointer<ffi.Char> arg1,
) {
return _edax_set_option(arg0,
arg1,
);
}
late final _edax_set_optionPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Char> , ffi.Pointer<ffi.Char> )>>('edax_set_option');
late final _edax_set_option = _edax_set_optionPtr.asFunction<void Function(ffi.Pointer<ffi.Char> , ffi.Pointer<ffi.Char> )>();
void edax_setboard(ffi.Pointer<ffi.Char> arg0,
) {
return _edax_setboard(arg0,
);
}
late final _edax_setboardPtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Char> )>>('edax_setboard');
late final _edax_setboard = _edax_setboardPtr.asFunction<void Function(ffi.Pointer<ffi.Char> )>();
void edax_stop() {
return _edax_stop();
}
late final _edax_stopPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_stop');
late final _edax_stop = _edax_stopPtr.asFunction<void Function()>();
void edax_undo() {
return _edax_undo();
}
late final _edax_undoPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_undo');
late final _edax_undo = _edax_undoPtr.asFunction<void Function()>();
void edax_version() {
return _edax_version();
}
late final _edax_versionPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_version');
late final _edax_version = _edax_versionPtr.asFunction<void Function()>();
void edax_vmirror() {
return _edax_vmirror();
}
late final _edax_vmirrorPtr = _lookup<
ffi.NativeFunction<ffi.Void Function()>>('edax_vmirror');
late final _edax_vmirror = _edax_vmirrorPtr.asFunction<void Function()>();
/// edge stability global data
late final ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>> _edge_stability = _lookup<ffi.Pointer<ffi.UnsignedChar>>('edge_stability');
ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>> get edge_stability => _edge_stability;
late final ffi.Pointer<Log> _engine_log = _lookup<Log>('engine_log');
ffi.Pointer<Log> get engine_log => _engine_log;
/// a global variable used to display the search result
late final ffi.Pointer<ffi.Char> _engine_result = _lookup<ffi.Char>('engine_result');
ffi.Pointer<ffi.Char> get engine_result => _engine_result;
/// Array of functions to compute flipped discs
late final ffi.Pointer<ffi.Pointer<ffi.NativeFunction<ffi.UnsignedLongLong Function(ffi.UnsignedLongLong , ffi.UnsignedLongLong )>>> _flip = _lookup<ffi.Pointer<ffi.NativeFunction<ffi.UnsignedLongLong Function(ffi.UnsignedLongLong , ffi.UnsignedLongLong )>>>('flip');
ffi.Pointer<ffi.Pointer<ffi.NativeFunction<ffi.UnsignedLongLong Function(ffi.UnsignedLongLong , ffi.UnsignedLongLong )>>> get flip => _flip;
late final ffi.Pointer<ffi.Int> _getdate_err = _lookup<ffi.Int>('getdate_err');
int get getdate_err => _getdate_err.value;
set getdate_err(int value) =>_getdate_err.value = value;
late final ffi.Pointer<Log> _ggs_log = _lookup<Log>('ggs_log');
ffi.Pointer<Log> get ggs_log => _ggs_log;
late final ffi.Pointer<Log> _gtp_log = _lookup<Log>('gtp_log');
ffi.Pointer<Log> get gtp_log => _gtp_log;
late final ffi.Pointer<ffi.Int> _h_errno = _lookup<ffi.Int>('h_errno');
int get h_errno => _h_errno.value;
set h_errno(int value) =>_h_errno.value = value;
/// hashing global data
late final ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> _hash_move = _lookup<ffi.Pointer<ffi.UnsignedLongLong>>('hash_move');
ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> get hash_move => _hash_move;
/// hashing global data
late final ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> _hash_rank = _lookup<ffi.Pointer<ffi.UnsignedLongLong>>('hash_rank');
ffi.Pointer<ffi.Pointer<ffi.UnsignedLongLong>> get hash_rank => _hash_rank;
late final ffi.Pointer<in6_addr> _in6addr_any = _lookup<in6_addr>('in6addr_any');
in6_addr get in6addr_any => _in6addr_any.ref;
late final ffi.Pointer<in6_addr> _in6addr_linklocal_allnodes = _lookup<in6_addr>('in6addr_linklocal_allnodes');
in6_addr get in6addr_linklocal_allnodes => _in6addr_linklocal_allnodes.ref;
late final ffi.Pointer<in6_addr> _in6addr_linklocal_allrouters = _lookup<in6_addr>('in6addr_linklocal_allrouters');
in6_addr get in6addr_linklocal_allrouters => _in6addr_linklocal_allrouters.ref;
late final ffi.Pointer<in6_addr> _in6addr_linklocal_allv2routers = _lookup<in6_addr>('in6addr_linklocal_allv2routers');
in6_addr get in6addr_linklocal_allv2routers => _in6addr_linklocal_allv2routers.ref;
late final ffi.Pointer<in6_addr> _in6addr_loopback = _lookup<in6_addr>('in6addr_loopback');
in6_addr get in6addr_loopback => _in6addr_loopback.ref;
late final ffi.Pointer<in6_addr> _in6addr_nodelocal_allnodes = _lookup<in6_addr>('in6addr_nodelocal_allnodes');
in6_addr get in6addr_nodelocal_allnodes => _in6addr_nodelocal_allnodes.ref;
/// a global string with the last result sent to avoid duplicate result lines
late final ffi.Pointer<ffi.Char> _last_line_sent = _lookup<ffi.Char>('last_line_sent');
ffi.Pointer<ffi.Char> get last_line_sent => _last_line_sent;
void libedax_initialize(int arg0,
ffi.Pointer<ffi.Pointer<ffi.Char>> arg1,
) {
return _libedax_initialize(arg0,
arg1,
);
}
late final _libedax_initializePtr = _lookup<
ffi.NativeFunction<ffi.Void Function(ffi.Int , ffi.Pointer<ffi.Pointer<ffi.Char>> )>>('libedax_initialize');
late final _libedax_initialize = _libedax_initializePtr.asFunction<void Function(int , ffi.Pointer<ffi.Pointer<ffi.Char>> )>();
void libedax_terminate() {
return _libedax_terminate();
}