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; }
public static extern VALUE rb_ary_clear(VALUE ary);
public static extern VALUE rb_hash_size(VALUE hash);
public static extern VALUE rb_hash_keys(VALUE hash);
public static extern VALUE rb_hash_aset(VALUE hash, VALUE key, VALUE value);
public static extern VALUE rb_hash_dup(VALUE hash);
public static extern VALUE rb_hash_clear(VALUE hash);
public static extern VALUE rb_ary_reverse(VALUE ary);
public static extern VALUE rb_ary_push(VALUE ary, VALUE obj);
public static extern VALUE rb_ary_pop(VALUE ary);
public static extern VALUE rb_ary_entry(VALUE ary, int index);
public static extern VALUE rb_ary_delete_at(VALUE ary, int index);
public static extern VALUE rb_ary_delete(VALUE ary, VALUE item);
public static extern VALUE rb_ary_cmp(VALUE ary1, VALUE ary2);
public static extern VALUE rb_ary_concat(VALUE ary, VALUE value);
public static extern VALUE rb_ary_rotate(VALUE ary, int n);
public static extern VALUE rb_ary_replace(VALUE copy, VALUE orig);
public static extern VALUE rb_ary_unshift(VALUE ary, VALUE obj);
public static extern VALUE rb_hash_freeze(VALUE hash);
public static extern VALUE rb_ary_plus(VALUE ary1, VALUE ary2);
public static extern VALUE rb_hash_delete(VALUE hash, VALUE key);
public static extern VALUE rb_ary_shift(VALUE ary);
public static extern VALUE rb_hash_aref(VALUE hash, VALUE key);
public static extern VALUE rb_ary_each(VALUE ary);
public static extern VALUE rb_hash_has_key(VALUE hash, VALUE key);
public static extern VALUE rb_ary_includes(VALUE ary, VALUE obj);
public static extern VALUE rb_hash_values(VALUE hash);
public static extern VALUE rb_ary_aref(int argc, VALUE *argv, VALUE ary);
public static extern VALUE rb_hash_set_ifnone(VALUE hash, VALUE defaultValue);
public static extern VALUE rb_ary_sort_bang(VALUE ary);