Esempio n. 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));
        }
Esempio n. 2
0
 public static int Length(IntPtr Object)
 {
     return((int)Integer.FromPtr(rb_hash_size(Object)));
 }
Esempio n. 3
0
 public static long Length(IntPtr Object)
 {
     return(Integer.FromPtr(Funcall(Object, "length")));
 }