System.Net.Sockets.SafeOverlappedFree.SafeOverlappedFree.Alloc C# (CSharp) Method

Alloc() public static method

public static Alloc ( ) : SafeOverlappedFree
return SafeOverlappedFree
        public static SafeOverlappedFree Alloc()
        {
            SafeOverlappedFree result = Interop.Kernel32.LocalAlloc_SafeOverlappedFree(
                                            Interop.Kernel32.LPTR,
                                            (UIntPtr)Interop.Kernel32.OverlappedSize);

            if (result.IsInvalid)
            {
                result.SetHandleAsInvalid();
                throw new OutOfMemoryException();
            }

            return result;
        }

Same methods

SafeOverlappedFree.SafeOverlappedFree::Alloc ( SafeCloseSocket socketHandle ) : SafeOverlappedFree
SafeOverlappedFree.SafeOverlappedFree