示例#1
0
        static API()
        {
            if (UIntPtr.Size == sizeof(double))
            {
                RUBY_Qfalse         = 0;
                RUBY_Qtrue          = 0x14;
                RUBY_Qnil           = 0x08;
                RUBY_Qundef         = 0x34;
                RUBY_IMMEDIATE_MASK = 0x07;
                RUBY_FIXNUM_FLAG    = 0x01;
                RUBY_FLONUM_MASK    = 0x02;
                RUBY_FLONUM_FLAG    = 0x02;
                RUBY_SYMBOL_FLAG    = 0x0c;
            }
            else
            {
                RUBY_Qfalse         = 0;
                RUBY_Qtrue          = 2;
                RUBY_Qnil           = 4;
                RUBY_Qundef         = 6;
                RUBY_IMMEDIATE_MASK = 0x03;
                RUBY_FIXNUM_FLAG    = 0x01;
                RUBY_FLONUM_MASK    = 0x00;
                RUBY_FLONUM_FLAG    = 0x02;
                RUBY_SYMBOL_FLAG    = 0x0e;
            }
            RUBY_SPECIAL_SHIFT = 8;
            Qfalse             = new VALUE(RUBY_Qfalse);
            Qtrue  = new VALUE(RUBY_Qtrue);
            Qnil   = new VALUE(RUBY_Qnil);
            Qundef = new VALUE(RUBY_Qundef);

            NULL = (void *)0;
            RUBY_DEFAULT_FREE = (void *)-1;
        }
示例#2
0
 public static extern VALUE rb_ary_clear(VALUE ary);
示例#3
0
 public static extern VALUE rb_hash_size(VALUE hash);
示例#4
0
 public static extern VALUE rb_hash_keys(VALUE hash);
示例#5
0
 public static extern VALUE rb_hash_aset(VALUE hash, VALUE key, VALUE value);
示例#6
0
 public static extern VALUE rb_hash_dup(VALUE hash);
示例#7
0
 public static extern VALUE rb_hash_clear(VALUE hash);
示例#8
0
 public static extern VALUE rb_ary_reverse(VALUE ary);
示例#9
0
 public static extern VALUE rb_ary_push(VALUE ary, VALUE obj);
示例#10
0
 public static extern VALUE rb_ary_pop(VALUE ary);
示例#11
0
 public static extern VALUE rb_ary_entry(VALUE ary, int index);
示例#12
0
 public static extern VALUE rb_ary_delete_at(VALUE ary, int index);
示例#13
0
 public static extern VALUE rb_ary_delete(VALUE ary, VALUE item);
示例#14
0
 public static extern VALUE rb_ary_cmp(VALUE ary1, VALUE ary2);
示例#15
0
 public static extern VALUE rb_ary_concat(VALUE ary, VALUE value);
示例#16
0
 public static extern VALUE rb_ary_rotate(VALUE ary, int n);
示例#17
0
 public static extern VALUE rb_ary_replace(VALUE copy, VALUE orig);
示例#18
0
 public static extern VALUE rb_ary_unshift(VALUE ary, VALUE obj);
示例#19
0
 public static extern VALUE rb_hash_freeze(VALUE hash);
示例#20
0
 public static extern VALUE rb_ary_plus(VALUE ary1, VALUE ary2);
示例#21
0
 public static extern VALUE rb_hash_delete(VALUE hash, VALUE key);
示例#22
0
 public static extern VALUE rb_ary_shift(VALUE ary);
示例#23
0
 public static extern VALUE rb_hash_aref(VALUE hash, VALUE key);
示例#24
0
 public static extern VALUE rb_ary_each(VALUE ary);
示例#25
0
 public static extern VALUE rb_hash_has_key(VALUE hash, VALUE key);
示例#26
0
 public static extern VALUE rb_ary_includes(VALUE ary, VALUE obj);
示例#27
0
 public static extern VALUE rb_hash_values(VALUE hash);
示例#28
0
 public static extern VALUE rb_ary_aref(int argc, VALUE *argv, VALUE ary);
示例#29
0
 public static extern VALUE rb_hash_set_ifnone(VALUE hash, VALUE defaultValue);
示例#30
0
 public static extern VALUE rb_ary_sort_bang(VALUE ary);