Free() public static method

Free memory returned by native code
public static Free ( IntPtr aPtr ) : void
aPtr System.IntPtr IntPtr returned by native code which is documented as requiring explicit destruction
return void
Esempio n. 1
0
        /// <summary>
        /// Get the full name for a given network interface.
        /// </summary>
        /// <returns>String in the form a.b.c.d (name).</returns>
        public string FullName()
        {
            IntPtr cStr = OhNetNetworkAdapterFullName(iHandle);
            string name = InteropUtils.PtrToStringUtf8(cStr);

            Library.Free(cStr);
            return(name);
        }