Esempio n. 1
0
 public static IntPtr pcs_malloc(uint sz)
 {
     if (BaiduPCS.pcs_isdebug())
     {
         return(NativeMethods.pcs_mem_malloc_arg1(sz));
     }
     else
     {
         return(NativeMethods.pcs_mem_malloc_raw(sz));
     }
 }
Esempio n. 2
0
 public static void pcs_free(IntPtr ptr)
 {
     if (BaiduPCS.pcs_isdebug())
     {
         NativeMethods.pcs_mem_free(ptr);
     }
     else
     {
         NativeMethods.pcs_mem_free_raw(ptr);
     }
 }