System.Net.SafeCloseHandle.SafeLocalFree.SafeLocalFree.LocalAlloc C# (CSharp) Метод

LocalAlloc() публичный статический Метод

public static LocalAlloc ( int cb ) : System.Net.SafeLocalFree
cb int
Результат System.Net.SafeLocalFree
        public static SafeLocalFree LocalAlloc(int cb) {
            SafeLocalFree result = UnsafeNclNativeMethods.SafeNetHandles.LocalAlloc(LMEM_FIXED, (UIntPtr) cb);
            if (result.IsInvalid) {
                result.SetHandleAsInvalid();
                throw new OutOfMemoryException();
            }
            return result;
        }
SafeCloseHandle.SafeLocalFree.SafeLocalFree