예제 #1
0
 void IDisposable.Dispose()
 {
     unsafe {
         MyRustStructAllocator.Free(ptr);
     }
 }
예제 #2
0
 public static MyRustStruct Create()
 {
     unsafe {
         return(new MyRustStruct(MyRustStructAllocator.New()));
     }
 }