Method AllocateMemory
AllocateMemory(ref int)
Calls NetworkDriver's AllocateMemory(ref int)
Declaration
public IntPtr AllocateMemory(ref int dataLen)
Parameters
| Type | Name | Description |
|---|---|---|
| int | dataLen | Size of memory to allocate in bytes. Must be > 0 |
Returns
| Type | Description |
|---|---|
| IntPtr | Pointer to allocated memory or IntPtr.Zero if there is no space left (this function doesn't set ReceiveErrorCode! caller should decide if this is Out of memory or something else) |