Example #1
0
        public override string ToString()
        {
            Utf8String str = default(Utf8String);

            try
            {
                str = Rust.Call(SafeNativeMethods.manifest_to_string, this.manifest);
                return(str.ToString());
            }
            finally
            {
                SafeNativeMethods.free_strbox(str);
            }
        }
Example #2
0
 public static void Drop(Utf8String s)
 {
     SafeNativeMethods.free_strbox(s);
 }