Example #1
0
        public static string FromPtr(IntPtr Value)
        {
            long len = Integer.FromPtr(Funcall(Value, "bytesize"));

            return(Marshal.PtrToStringUTF8(rb_string_value_ptr(ref Value), (int)len));
        }
Example #2
0
 public static int Length(IntPtr Object)
 {
     return((int)Integer.FromPtr(rb_hash_size(Object)));
 }
Example #3
0
 public static long Length(IntPtr Object)
 {
     return(Integer.FromPtr(Funcall(Object, "length")));
 }