-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunction_ruby_3_3_generated.go
9264 lines (8203 loc) · 235 KB
/
function_ruby_3_3_generated.go
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
// THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS.
// WARNING: This file has automatically been generated
// Code generated by ruby_h_to_go. DO NOT EDIT.
// FIXME: https://pkg.go.dev/ doesn't support custom build tag.
// Therefore, if no build tag is passed, treat it as the default tag
//go:build ruby_3_3 || !ruby_3_4
package ruby
/*
#include "ruby.h"
*/
import "C"
import (
"unsafe"
)
// RARRAY_ASET calls `RARRAY_ASET` in C
//
// Original definition is following
//
// RARRAY_ASET(VALUE ary, long i, VALUE v)
func RARRAY_ASET(ary VALUE, i Long, v VALUE) {
C.RARRAY_ASET(C.VALUE(ary), C.long(i), C.VALUE(v))
}
// RARRAY_EMBED_LEN calls `RARRAY_EMBED_LEN` in C
//
// Original definition is following
//
// RARRAY_EMBED_LEN(VALUE ary)
func RARRAY_EMBED_LEN(ary VALUE) Long {
return Long(C.RARRAY_EMBED_LEN(C.VALUE(ary)))
}
// RARRAY_LENINT calls `RARRAY_LENINT` in C
//
// Original definition is following
//
// RARRAY_LENINT(VALUE ary)
func RARRAY_LENINT(ary VALUE) int {
return int(C.RARRAY_LENINT(C.VALUE(ary)))
}
// RARRAY_PTR calls `RARRAY_PTR` in C
//
// Original definition is following
//
// RARRAY_PTR(VALUE ary)
func RARRAY_PTR(ary VALUE) *VALUE {
return (*VALUE)(C.RARRAY_PTR(C.VALUE(ary)))
}
// RB_BUILTIN_TYPE calls `RB_BUILTIN_TYPE` in C
//
// Original definition is following
//
// RB_BUILTIN_TYPE(VALUE obj)
func RB_BUILTIN_TYPE(obj VALUE) RubyValueType {
return RubyValueType(C.RB_BUILTIN_TYPE(C.VALUE(obj)))
}
// RB_CHR2FIX calls `RB_CHR2FIX` in C
//
// Original definition is following
//
// RB_CHR2FIX(unsigned char c)
func RB_CHR2FIX(c Uchar) VALUE {
return VALUE(C.RB_CHR2FIX(C.uchar(c)))
}
// RB_DYNAMIC_SYM_P calls `RB_DYNAMIC_SYM_P` in C
//
// Original definition is following
//
// RB_DYNAMIC_SYM_P(VALUE obj)
func RB_DYNAMIC_SYM_P(obj VALUE) Bool {
return Bool(C.RB_DYNAMIC_SYM_P(C.VALUE(obj)))
}
// RB_FIX2INT calls `RB_FIX2INT` in C
//
// Original definition is following
//
// RB_FIX2INT(VALUE x)
func RB_FIX2INT(x VALUE) int {
return int(C.RB_FIX2INT(C.VALUE(x)))
}
// RB_FIX2UINT calls `RB_FIX2UINT` in C
//
// Original definition is following
//
// RB_FIX2UINT(VALUE x)
func RB_FIX2UINT(x VALUE) uint {
return uint(C.RB_FIX2UINT(C.VALUE(x)))
}
// RB_FIXNUM_P calls `RB_FIXNUM_P` in C
//
// Original definition is following
//
// RB_FIXNUM_P(VALUE obj)
func RB_FIXNUM_P(obj VALUE) Bool {
return Bool(C.RB_FIXNUM_P(C.VALUE(obj)))
}
// RB_FLOAT_TYPE_P calls `RB_FLOAT_TYPE_P` in C
//
// Original definition is following
//
// RB_FLOAT_TYPE_P(VALUE obj)
func RB_FLOAT_TYPE_P(obj VALUE) Bool {
return Bool(C.RB_FLOAT_TYPE_P(C.VALUE(obj)))
}
// RB_FLONUM_P calls `RB_FLONUM_P` in C
//
// Original definition is following
//
// RB_FLONUM_P(VALUE obj)
func RB_FLONUM_P(obj VALUE) Bool {
return Bool(C.RB_FLONUM_P(C.VALUE(obj)))
}
// RB_FL_ABLE calls `RB_FL_ABLE` in C
//
// Original definition is following
//
// RB_FL_ABLE(VALUE obj)
func RB_FL_ABLE(obj VALUE) Bool {
return Bool(C.RB_FL_ABLE(C.VALUE(obj)))
}
// RB_FL_ALL calls `RB_FL_ALL` in C
//
// Original definition is following
//
// RB_FL_ALL(VALUE obj, VALUE flags)
func RB_FL_ALL(obj VALUE, flags VALUE) Bool {
return Bool(C.RB_FL_ALL(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_ALL_RAW calls `RB_FL_ALL_RAW` in C
//
// Original definition is following
//
// RB_FL_ALL_RAW(VALUE obj, VALUE flags)
func RB_FL_ALL_RAW(obj VALUE, flags VALUE) Bool {
return Bool(C.RB_FL_ALL_RAW(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_ANY calls `RB_FL_ANY` in C
//
// Original definition is following
//
// RB_FL_ANY(VALUE obj, VALUE flags)
func RB_FL_ANY(obj VALUE, flags VALUE) Bool {
return Bool(C.RB_FL_ANY(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_ANY_RAW calls `RB_FL_ANY_RAW` in C
//
// Original definition is following
//
// RB_FL_ANY_RAW(VALUE obj, VALUE flags)
func RB_FL_ANY_RAW(obj VALUE, flags VALUE) Bool {
return Bool(C.RB_FL_ANY_RAW(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_REVERSE calls `RB_FL_REVERSE` in C
//
// Original definition is following
//
// RB_FL_REVERSE(VALUE obj, VALUE flags)
func RB_FL_REVERSE(obj VALUE, flags VALUE) {
C.RB_FL_REVERSE(C.VALUE(obj), C.VALUE(flags))
}
// RB_FL_REVERSE_RAW calls `RB_FL_REVERSE_RAW` in C
//
// Original definition is following
//
// RB_FL_REVERSE_RAW(VALUE obj, VALUE flags)
func RB_FL_REVERSE_RAW(obj VALUE, flags VALUE) {
C.RB_FL_REVERSE_RAW(C.VALUE(obj), C.VALUE(flags))
}
// RB_FL_SET calls `RB_FL_SET` in C
//
// Original definition is following
//
// RB_FL_SET(VALUE obj, VALUE flags)
func RB_FL_SET(obj VALUE, flags VALUE) {
C.RB_FL_SET(C.VALUE(obj), C.VALUE(flags))
}
// RB_FL_SET_RAW calls `RB_FL_SET_RAW` in C
//
// Original definition is following
//
// RB_FL_SET_RAW(VALUE obj, VALUE flags)
func RB_FL_SET_RAW(obj VALUE, flags VALUE) {
C.RB_FL_SET_RAW(C.VALUE(obj), C.VALUE(flags))
}
// RB_FL_TEST calls `RB_FL_TEST` in C
//
// Original definition is following
//
// RB_FL_TEST(VALUE obj, VALUE flags)
func RB_FL_TEST(obj VALUE, flags VALUE) VALUE {
return VALUE(C.RB_FL_TEST(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_TEST_RAW calls `RB_FL_TEST_RAW` in C
//
// Original definition is following
//
// RB_FL_TEST_RAW(VALUE obj, VALUE flags)
func RB_FL_TEST_RAW(obj VALUE, flags VALUE) VALUE {
return VALUE(C.RB_FL_TEST_RAW(C.VALUE(obj), C.VALUE(flags)))
}
// RB_FL_UNSET calls `RB_FL_UNSET` in C
//
// Original definition is following
//
// RB_FL_UNSET(VALUE obj, VALUE flags)
func RB_FL_UNSET(obj VALUE, flags VALUE) {
C.RB_FL_UNSET(C.VALUE(obj), C.VALUE(flags))
}
// RB_FL_UNSET_RAW calls `RB_FL_UNSET_RAW` in C
//
// Original definition is following
//
// RB_FL_UNSET_RAW(VALUE obj, VALUE flags)
func RB_FL_UNSET_RAW(obj VALUE, flags VALUE) {
C.RB_FL_UNSET_RAW(C.VALUE(obj), C.VALUE(flags))
}
// RB_IMMEDIATE_P calls `RB_IMMEDIATE_P` in C
//
// Original definition is following
//
// RB_IMMEDIATE_P(VALUE obj)
func RB_IMMEDIATE_P(obj VALUE) Bool {
return Bool(C.RB_IMMEDIATE_P(C.VALUE(obj)))
}
// RB_INT2FIX calls `RB_INT2FIX` in C
//
// Original definition is following
//
// RB_INT2FIX(long i)
func RB_INT2FIX(i Long) VALUE {
return VALUE(C.RB_INT2FIX(C.long(i)))
}
// RB_NIL_OR_UNDEF_P calls `RB_NIL_OR_UNDEF_P` in C
//
// Original definition is following
//
// RB_NIL_OR_UNDEF_P(VALUE obj)
func RB_NIL_OR_UNDEF_P(obj VALUE) Bool {
return Bool(C.RB_NIL_OR_UNDEF_P(C.VALUE(obj)))
}
// RB_NIL_P calls `RB_NIL_P` in C
//
// Original definition is following
//
// RB_NIL_P(VALUE obj)
func RB_NIL_P(obj VALUE) Bool {
return Bool(C.RB_NIL_P(C.VALUE(obj)))
}
// RB_NUM2UINT calls `RB_NUM2UINT` in C
//
// Original definition is following
//
// RB_NUM2UINT(VALUE x)
func RB_NUM2UINT(x VALUE) uint {
return uint(C.RB_NUM2UINT(C.VALUE(x)))
}
// RB_OBJ_FREEZE_RAW calls `RB_OBJ_FREEZE_RAW` in C
//
// Original definition is following
//
// RB_OBJ_FREEZE_RAW(VALUE obj)
func RB_OBJ_FREEZE_RAW(obj VALUE) {
C.RB_OBJ_FREEZE_RAW(C.VALUE(obj))
}
// RB_OBJ_FROZEN calls `RB_OBJ_FROZEN` in C
//
// Original definition is following
//
// RB_OBJ_FROZEN(VALUE obj)
func RB_OBJ_FROZEN(obj VALUE) Bool {
return Bool(C.RB_OBJ_FROZEN(C.VALUE(obj)))
}
// RB_OBJ_FROZEN_RAW calls `RB_OBJ_FROZEN_RAW` in C
//
// Original definition is following
//
// RB_OBJ_FROZEN_RAW(VALUE obj)
func RB_OBJ_FROZEN_RAW(obj VALUE) VALUE {
return VALUE(C.RB_OBJ_FROZEN_RAW(C.VALUE(obj)))
}
// RB_OBJ_PROMOTED calls `RB_OBJ_PROMOTED` in C
//
// Original definition is following
//
// RB_OBJ_PROMOTED(VALUE obj)
func RB_OBJ_PROMOTED(obj VALUE) Bool {
return Bool(C.RB_OBJ_PROMOTED(C.VALUE(obj)))
}
// RB_OBJ_PROMOTED_RAW calls `RB_OBJ_PROMOTED_RAW` in C
//
// Original definition is following
//
// RB_OBJ_PROMOTED_RAW(VALUE obj)
func RB_OBJ_PROMOTED_RAW(obj VALUE) Bool {
return Bool(C.RB_OBJ_PROMOTED_RAW(C.VALUE(obj)))
}
// RB_SPECIAL_CONST_P calls `RB_SPECIAL_CONST_P` in C
//
// Original definition is following
//
// RB_SPECIAL_CONST_P(VALUE obj)
func RB_SPECIAL_CONST_P(obj VALUE) Bool {
return Bool(C.RB_SPECIAL_CONST_P(C.VALUE(obj)))
}
// RB_ST2FIX calls `RB_ST2FIX` in C
//
// Original definition is following
//
// RB_ST2FIX(st_data_t i)
func RB_ST2FIX(i StDataT) VALUE {
return VALUE(C.RB_ST2FIX(C.st_data_t(i)))
}
// RB_STATIC_SYM_P calls `RB_STATIC_SYM_P` in C
//
// Original definition is following
//
// RB_STATIC_SYM_P(VALUE obj)
func RB_STATIC_SYM_P(obj VALUE) Bool {
return Bool(C.RB_STATIC_SYM_P(C.VALUE(obj)))
}
// RB_SYMBOL_P calls `RB_SYMBOL_P` in C
//
// Original definition is following
//
// RB_SYMBOL_P(VALUE obj)
func RB_SYMBOL_P(obj VALUE) Bool {
return Bool(C.RB_SYMBOL_P(C.VALUE(obj)))
}
// RB_TEST calls `RB_TEST` in C
//
// Original definition is following
//
// RB_TEST(VALUE obj)
func RB_TEST(obj VALUE) Bool {
return Bool(C.RB_TEST(C.VALUE(obj)))
}
// RB_TYPE_P calls `RB_TYPE_P` in C
//
// Original definition is following
//
// RB_TYPE_P(VALUE obj, enum ruby_value_type t)
func RB_TYPE_P(obj VALUE, t RubyValueType) Bool {
return Bool(C.RB_TYPE_P(C.VALUE(obj), C.enum_ruby_value_type(t)))
}
// RB_UNDEF_P calls `RB_UNDEF_P` in C
//
// Original definition is following
//
// RB_UNDEF_P(VALUE obj)
func RB_UNDEF_P(obj VALUE) Bool {
return Bool(C.RB_UNDEF_P(C.VALUE(obj)))
}
// RSTRING_END calls `RSTRING_END` in C
//
// Original definition is following
//
// RSTRING_END(VALUE str)
func RSTRING_END(str VALUE) *Char {
return (*Char)(C.RSTRING_END(C.VALUE(str)))
}
// RSTRING_LEN calls `RSTRING_LEN` in C
//
// Original definition is following
//
// RSTRING_LEN(VALUE str)
func RSTRING_LEN(str VALUE) Long {
return Long(C.RSTRING_LEN(C.VALUE(str)))
}
// RSTRING_LENINT calls `RSTRING_LENINT` in C
//
// Original definition is following
//
// RSTRING_LENINT(VALUE str)
func RSTRING_LENINT(str VALUE) int {
return int(C.RSTRING_LENINT(C.VALUE(str)))
}
// RSTRING_PTR calls `RSTRING_PTR` in C
//
// Original definition is following
//
// RSTRING_PTR(VALUE str)
func RSTRING_PTR(str VALUE) *Char {
return (*Char)(C.RSTRING_PTR(C.VALUE(str)))
}
// RbArray calls `rb_Array` in C
//
// Original definition is following
//
// VALUE rb_Array(VALUE val)
func RbArray(val VALUE) VALUE {
return VALUE(C.rb_Array(C.VALUE(val)))
}
// RbComplex calls `rb_Complex` in C
//
// Original definition is following
//
// VALUE rb_Complex(VALUE real, VALUE imag)
func RbComplex(real VALUE, imag VALUE) VALUE {
return VALUE(C.rb_Complex(C.VALUE(real), C.VALUE(imag)))
}
// RbFloat calls `rb_Float` in C
//
// Original definition is following
//
// VALUE rb_Float(VALUE val)
func RbFloat(val VALUE) VALUE {
return VALUE(C.rb_Float(C.VALUE(val)))
}
// RbInteger calls `rb_Integer` in C
//
// Original definition is following
//
// VALUE rb_Integer(VALUE val)
func RbInteger(val VALUE) VALUE {
return VALUE(C.rb_Integer(C.VALUE(val)))
}
// RbRational calls `rb_Rational` in C
//
// Original definition is following
//
// VALUE rb_Rational(VALUE num, VALUE den)
func RbRational(num VALUE, den VALUE) VALUE {
return VALUE(C.rb_Rational(C.VALUE(num), C.VALUE(den)))
}
// RbString calls `rb_String` in C
//
// Original definition is following
//
// VALUE rb_String(VALUE val)
func RbString(val VALUE) VALUE {
return VALUE(C.rb_String(C.VALUE(val)))
}
// RbAbsintNumwords calls `rb_absint_numwords` in C
//
// Original definition is following
//
// size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
func RbAbsintNumwords(val VALUE, word_numbits SizeT, nlz_bits_ret *SizeT) SizeT {
var cNlzBitsRet C.size_t
ret := SizeT(C.rb_absint_numwords(C.VALUE(val), C.size_t(word_numbits), &cNlzBitsRet))
*nlz_bits_ret = SizeT(cNlzBitsRet)
return ret
}
// RbAbsintSinglebitP calls `rb_absint_singlebit_p` in C
//
// Original definition is following
//
// int rb_absint_singlebit_p(VALUE val)
func RbAbsintSinglebitP(val VALUE) int {
return int(C.rb_absint_singlebit_p(C.VALUE(val)))
}
// RbAbsintSize calls `rb_absint_size` in C
//
// Original definition is following
//
// size_t rb_absint_size(VALUE val, int *nlz_bits_ret)
func RbAbsintSize(val VALUE, nlz_bits_ret *int) SizeT {
var cNlzBitsRet C.int
ret := SizeT(C.rb_absint_size(C.VALUE(val), &cNlzBitsRet))
*nlz_bits_ret = int(cNlzBitsRet)
return ret
}
// RbAddEventHook calls `rb_add_event_hook` in C
//
// Original definition is following
//
// void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
func RbAddEventHook(fun RbEventHookFuncT, events RbEventFlagT, data VALUE) {
C.rb_add_event_hook(C.rb_event_hook_func_t(fun), C.rb_event_flag_t(events), C.VALUE(data))
}
// RbAlias calls `rb_alias` in C
//
// Original definition is following
//
// void rb_alias(VALUE klass, ID dst, ID src)
func RbAlias(klass VALUE, dst ID, src ID) {
C.rb_alias(C.VALUE(klass), C.ID(dst), C.ID(src))
}
// RbAliasVariable calls `rb_alias_variable` in C
//
// Original definition is following
//
// void rb_alias_variable(ID dst, ID src)
func RbAliasVariable(dst ID, src ID) {
C.rb_alias_variable(C.ID(dst), C.ID(src))
}
// RbAllocTmpBuffer calls `rb_alloc_tmp_buffer` in C
//
// Original definition is following
//
// void *rb_alloc_tmp_buffer(volatile VALUE *store, long len)
func RbAllocTmpBuffer(store *VALUE, len Long) unsafe.Pointer {
var cStore C.VALUE
ret := unsafe.Pointer(C.rb_alloc_tmp_buffer(&cStore, C.long(len)))
*store = VALUE(cStore)
return ret
}
// RbAllocTmpBuffer2 calls `rb_alloc_tmp_buffer2` in C
//
// Original definition is following
//
// rb_alloc_tmp_buffer2(volatile VALUE *store, long count, size_t elsize)
func RbAllocTmpBuffer2(store *VALUE, count Long, elsize SizeT) unsafe.Pointer {
var cStore C.VALUE
ret := unsafe.Pointer(C.rb_alloc_tmp_buffer2(&cStore, C.long(count), C.size_t(elsize)))
*store = VALUE(cStore)
return ret
}
// RbAllocTmpBufferWithCount calls `rb_alloc_tmp_buffer_with_count` in C
//
// Original definition is following
//
// void *rb_alloc_tmp_buffer_with_count(volatile VALUE *store, size_t len,size_t count)
func RbAllocTmpBufferWithCount(store *VALUE, len SizeT, count SizeT) unsafe.Pointer {
var cStore C.VALUE
ret := unsafe.Pointer(C.rb_alloc_tmp_buffer_with_count(&cStore, C.size_t(len), C.size_t(count)))
*store = VALUE(cStore)
return ret
}
// RbAnyToS calls `rb_any_to_s` in C
//
// Original definition is following
//
// VALUE rb_any_to_s(VALUE obj)
func RbAnyToS(obj VALUE) VALUE {
return VALUE(C.rb_any_to_s(C.VALUE(obj)))
}
// RbApply calls `rb_apply` in C
//
// Original definition is following
//
// VALUE rb_apply(VALUE recv, ID mid, VALUE args)
func RbApply(recv VALUE, mid ID, args VALUE) VALUE {
return VALUE(C.rb_apply(C.VALUE(recv), C.ID(mid), C.VALUE(args)))
}
// RbArithmeticSequenceBegLenStep calls `rb_arithmetic_sequence_beg_len_step` in C
//
// Original definition is following
//
// VALUE rb_arithmetic_sequence_beg_len_step(VALUE as, long *begp, long *lenp, long *stepp, long len, int err)
func RbArithmeticSequenceBegLenStep(as VALUE, begp *Long, lenp *Long, stepp *Long, len Long, err int) VALUE {
var cBegp C.long
var cLenp C.long
var cStepp C.long
ret := VALUE(C.rb_arithmetic_sequence_beg_len_step(C.VALUE(as), &cBegp, &cLenp, &cStepp, C.long(len), C.int(err)))
*begp = Long(cBegp)
*lenp = Long(cLenp)
*stepp = Long(cStepp)
return ret
}
// RbArithmeticSequenceExtract calls `rb_arithmetic_sequence_extract` in C
//
// Original definition is following
//
// int rb_arithmetic_sequence_extract(VALUE as, rb_arithmetic_sequence_components_t *buf)
func RbArithmeticSequenceExtract(as VALUE, buf *RbArithmeticSequenceComponentsT) int {
var cBuf C.rb_arithmetic_sequence_components_t
ret := int(C.rb_arithmetic_sequence_extract(C.VALUE(as), &cBuf))
*buf = RbArithmeticSequenceComponentsT(cBuf)
return ret
}
// RbArrayConstPtr calls `rb_array_const_ptr` in C
//
// Original definition is following
//
// rb_array_const_ptr(VALUE a)
func RbArrayConstPtr(a VALUE) *VALUE {
return (*VALUE)(C.rb_array_const_ptr(C.VALUE(a)))
}
// RbArrayLen calls `rb_array_len` in C
//
// Original definition is following
//
// rb_array_len(VALUE a)
func RbArrayLen(a VALUE) Long {
return Long(C.rb_array_len(C.VALUE(a)))
}
// RbAryAref calls `rb_ary_aref` in C
//
// Original definition is following
//
// VALUE rb_ary_aref(int argc, const VALUE *argv, VALUE ary)
func RbAryAref(argc int, argv *VALUE, ary VALUE) VALUE {
var cArgv C.VALUE
ret := VALUE(C.rb_ary_aref(C.int(argc), &cArgv, C.VALUE(ary)))
*argv = VALUE(cArgv)
return ret
}
// RbAryAssoc calls `rb_ary_assoc` in C
//
// Original definition is following
//
// VALUE rb_ary_assoc(VALUE alist, VALUE key)
func RbAryAssoc(alist VALUE, key VALUE) VALUE {
return VALUE(C.rb_ary_assoc(C.VALUE(alist), C.VALUE(key)))
}
// RbAryCat calls `rb_ary_cat` in C
//
// Original definition is following
//
// VALUE rb_ary_cat(VALUE ary, const VALUE *train, long len)
func RbAryCat(ary VALUE, train *VALUE, len Long) VALUE {
var cTrain C.VALUE
ret := VALUE(C.rb_ary_cat(C.VALUE(ary), &cTrain, C.long(len)))
*train = VALUE(cTrain)
return ret
}
// RbAryClear calls `rb_ary_clear` in C
//
// Original definition is following
//
// VALUE rb_ary_clear(VALUE ary)
func RbAryClear(ary VALUE) VALUE {
return VALUE(C.rb_ary_clear(C.VALUE(ary)))
}
// RbAryCmp calls `rb_ary_cmp` in C
//
// Original definition is following
//
// VALUE rb_ary_cmp(VALUE lhs, VALUE rhs)
func RbAryCmp(lhs VALUE, rhs VALUE) VALUE {
return VALUE(C.rb_ary_cmp(C.VALUE(lhs), C.VALUE(rhs)))
}
// RbAryConcat calls `rb_ary_concat` in C
//
// Original definition is following
//
// VALUE rb_ary_concat(VALUE lhs, VALUE rhs)
func RbAryConcat(lhs VALUE, rhs VALUE) VALUE {
return VALUE(C.rb_ary_concat(C.VALUE(lhs), C.VALUE(rhs)))
}
// RbAryDelete calls `rb_ary_delete` in C
//
// Original definition is following
//
// VALUE rb_ary_delete(VALUE ary, VALUE elem)
func RbAryDelete(ary VALUE, elem VALUE) VALUE {
return VALUE(C.rb_ary_delete(C.VALUE(ary), C.VALUE(elem)))
}
// RbAryDeleteAt calls `rb_ary_delete_at` in C
//
// Original definition is following
//
// VALUE rb_ary_delete_at(VALUE ary, long pos)
func RbAryDeleteAt(ary VALUE, pos Long) VALUE {
return VALUE(C.rb_ary_delete_at(C.VALUE(ary), C.long(pos)))
}
// RbAryDup calls `rb_ary_dup` in C
//
// Original definition is following
//
// VALUE rb_ary_dup(VALUE ary)
func RbAryDup(ary VALUE) VALUE {
return VALUE(C.rb_ary_dup(C.VALUE(ary)))
}
// RbAryEach calls `rb_ary_each` in C
//
// Original definition is following
//
// VALUE rb_ary_each(VALUE ary)
func RbAryEach(ary VALUE) VALUE {
return VALUE(C.rb_ary_each(C.VALUE(ary)))
}
// RbAryEntry calls `rb_ary_entry` in C
//
// Original definition is following
//
// VALUE rb_ary_entry(VALUE ary, long off)
func RbAryEntry(ary VALUE, off Long) VALUE {
return VALUE(C.rb_ary_entry(C.VALUE(ary), C.long(off)))
}
// RbAryFree calls `rb_ary_free` in C
//
// Original definition is following
//
// void rb_ary_free(VALUE ary)
func RbAryFree(ary VALUE) {
C.rb_ary_free(C.VALUE(ary))
}
// RbAryFreeze calls `rb_ary_freeze` in C
//
// Original definition is following
//
// VALUE rb_ary_freeze(VALUE obj)
func RbAryFreeze(obj VALUE) VALUE {
return VALUE(C.rb_ary_freeze(C.VALUE(obj)))
}
// RbAryHiddenNew calls `rb_ary_hidden_new` in C
//
// Original definition is following
//
// VALUE rb_ary_hidden_new(long capa)
func RbAryHiddenNew(capa Long) VALUE {
return VALUE(C.rb_ary_hidden_new(C.long(capa)))
}
// RbAryIncludes calls `rb_ary_includes` in C
//
// Original definition is following
//
// VALUE rb_ary_includes(VALUE ary, VALUE elem)
func RbAryIncludes(ary VALUE, elem VALUE) VALUE {
return VALUE(C.rb_ary_includes(C.VALUE(ary), C.VALUE(elem)))
}
// RbAryJoin calls `rb_ary_join` in C
//
// Original definition is following
//
// VALUE rb_ary_join(VALUE ary, VALUE sep)
func RbAryJoin(ary VALUE, sep VALUE) VALUE {
return VALUE(C.rb_ary_join(C.VALUE(ary), C.VALUE(sep)))
}
// RbAryModify calls `rb_ary_modify` in C
//
// Original definition is following
//
// void rb_ary_modify(VALUE ary)
func RbAryModify(ary VALUE) {
C.rb_ary_modify(C.VALUE(ary))
}
// RbAryNew calls `rb_ary_new` in C
//
// Original definition is following
//
// VALUE rb_ary_new(void)
func RbAryNew() VALUE {
return VALUE(C.rb_ary_new())
}
// RbAryNewCapa calls `rb_ary_new_capa` in C
//
// Original definition is following
//
// VALUE rb_ary_new_capa(long capa)
func RbAryNewCapa(capa Long) VALUE {
return VALUE(C.rb_ary_new_capa(C.long(capa)))
}
// RbAryNewFromValues calls `rb_ary_new_from_values` in C
//
// Original definition is following
//
// VALUE rb_ary_new_from_values(long n, const VALUE *elts)
func RbAryNewFromValues(n Long, elts *VALUE) VALUE {
var cElts C.VALUE
ret := VALUE(C.rb_ary_new_from_values(C.long(n), &cElts))
*elts = VALUE(cElts)
return ret
}
// RbAryPlus calls `rb_ary_plus` in C
//
// Original definition is following
//
// VALUE rb_ary_plus(VALUE lhs, VALUE rhs)
func RbAryPlus(lhs VALUE, rhs VALUE) VALUE {
return VALUE(C.rb_ary_plus(C.VALUE(lhs), C.VALUE(rhs)))
}
// RbAryPop calls `rb_ary_pop` in C
//
// Original definition is following
//
// VALUE rb_ary_pop(VALUE ary)
func RbAryPop(ary VALUE) VALUE {
return VALUE(C.rb_ary_pop(C.VALUE(ary)))
}
// RbAryPtrUseEnd calls `rb_ary_ptr_use_end` in C
//
// Original definition is following
//
// void rb_ary_ptr_use_end(VALUE a)
func RbAryPtrUseEnd(a VALUE) {
C.rb_ary_ptr_use_end(C.VALUE(a))
}
// RbAryPtrUseStart calls `rb_ary_ptr_use_start` in C
//
// Original definition is following
//
// VALUE *rb_ary_ptr_use_start(VALUE ary)
func RbAryPtrUseStart(ary VALUE) *VALUE {
return (*VALUE)(C.rb_ary_ptr_use_start(C.VALUE(ary)))
}
// RbAryPush calls `rb_ary_push` in C
//
// Original definition is following
//
// VALUE rb_ary_push(VALUE ary, VALUE elem)
func RbAryPush(ary VALUE, elem VALUE) VALUE {
return VALUE(C.rb_ary_push(C.VALUE(ary), C.VALUE(elem)))
}
// RbAryRassoc calls `rb_ary_rassoc` in C
//
// Original definition is following
//
// VALUE rb_ary_rassoc(VALUE alist, VALUE key)
func RbAryRassoc(alist VALUE, key VALUE) VALUE {
return VALUE(C.rb_ary_rassoc(C.VALUE(alist), C.VALUE(key)))
}
// RbAryReplace calls `rb_ary_replace` in C
//
// Original definition is following
//
// VALUE rb_ary_replace(VALUE copy, VALUE orig)
func RbAryReplace(copy VALUE, orig VALUE) VALUE {
return VALUE(C.rb_ary_replace(C.VALUE(copy), C.VALUE(orig)))
}
// RbAryResize calls `rb_ary_resize` in C
//
// Original definition is following
//
// VALUE rb_ary_resize(VALUE ary, long len)
func RbAryResize(ary VALUE, len Long) VALUE {
return VALUE(C.rb_ary_resize(C.VALUE(ary), C.long(len)))
}
// RbAryResurrect calls `rb_ary_resurrect` in C
//
// Original definition is following
//
// VALUE rb_ary_resurrect(VALUE ary)
func RbAryResurrect(ary VALUE) VALUE {
return VALUE(C.rb_ary_resurrect(C.VALUE(ary)))
}
// RbAryReverse calls `rb_ary_reverse` in C
//
// Original definition is following
//
// VALUE rb_ary_reverse(VALUE ary)
func RbAryReverse(ary VALUE) VALUE {
return VALUE(C.rb_ary_reverse(C.VALUE(ary)))
}
// RbAryRotate calls `rb_ary_rotate` in C
//
// Original definition is following
//
// VALUE rb_ary_rotate(VALUE ary, long rot)
func RbAryRotate(ary VALUE, rot Long) VALUE {
return VALUE(C.rb_ary_rotate(C.VALUE(ary), C.long(rot)))
}
// RbArySharedWithP calls `rb_ary_shared_with_p` in C
//
// Original definition is following
//
// VALUE rb_ary_shared_with_p(VALUE lhs, VALUE rhs)
func RbArySharedWithP(lhs VALUE, rhs VALUE) VALUE {
return VALUE(C.rb_ary_shared_with_p(C.VALUE(lhs), C.VALUE(rhs)))
}
// RbAryShift calls `rb_ary_shift` in C
//
// Original definition is following
//
// VALUE rb_ary_shift(VALUE ary)
func RbAryShift(ary VALUE) VALUE {
return VALUE(C.rb_ary_shift(C.VALUE(ary)))
}
// RbArySort calls `rb_ary_sort` in C
//
// Original definition is following
//
// VALUE rb_ary_sort(VALUE ary)
func RbArySort(ary VALUE) VALUE {
return VALUE(C.rb_ary_sort(C.VALUE(ary)))
}
// RbArySortBang calls `rb_ary_sort_bang` in C
//
// Original definition is following
//
// VALUE rb_ary_sort_bang(VALUE ary)
func RbArySortBang(ary VALUE) VALUE {
return VALUE(C.rb_ary_sort_bang(C.VALUE(ary)))
}
// RbAryStore calls `rb_ary_store` in C
//
// Original definition is following
//
// void rb_ary_store(VALUE ary, long key, VALUE val)
func RbAryStore(ary VALUE, key Long, val VALUE) {
C.rb_ary_store(C.VALUE(ary), C.long(key), C.VALUE(val))
}
// RbArySubseq calls `rb_ary_subseq` in C
//
// Original definition is following
//
// VALUE rb_ary_subseq(VALUE ary, long beg, long len)
func RbArySubseq(ary VALUE, beg Long, len Long) VALUE {
return VALUE(C.rb_ary_subseq(C.VALUE(ary), C.long(beg), C.long(len)))
}
// RbAryToAry calls `rb_ary_to_ary` in C
//
// Original definition is following
//
// VALUE rb_ary_to_ary(VALUE obj)
func RbAryToAry(obj VALUE) VALUE {
return VALUE(C.rb_ary_to_ary(C.VALUE(obj)))
}
// RbAryToS calls `rb_ary_to_s` in C